removed drivePath param
Some checks are pending
Build / Compile and Test (push) Waiting to run

This commit is contained in:
Jan-Peter Klein 2024-10-09 14:50:05 +02:00
parent 98db82d137
commit 2dce7b6f71
No known key found for this signature in database
GPG Key ID: 90EDA3A7C822FD0E

View File

@ -69,7 +69,7 @@ public final class GoogleDriveMacLocationPresetsProvider implements LocationPres
* @param accountPath The path to the Google Drive account directory (e.g. {@code ~/Library/CloudStorage/GoogleDrive-username})
* @return {@code String}. For example: "Google Drive - username"
*/
private String getDriveLocationString(Path accountPath, Path drivePath) {
private String getDriveLocationString(Path accountPath) {
String accountName = accountPath.getFileName().toString().replace("GoogleDrive-", "");
return STR."Google Drive - \{accountName}";
}
@ -110,7 +110,7 @@ public final class GoogleDriveMacLocationPresetsProvider implements LocationPres
.filter(preset -> MY_DRIVE_TRANSLATIONS
.contains(preset.getFileName().toString()))
.map(drivePath -> new LocationPreset(
getDriveLocationString(accountPath, drivePath),
getDriveLocationString(accountPath),
drivePath
));
} catch (IOException e) {