From 2dce7b6f711ae98f0002d0219c3bb97ef90af746 Mon Sep 17 00:00:00 2001 From: Jan-Peter Klein Date: Wed, 9 Oct 2024 14:50:05 +0200 Subject: [PATCH] removed drivePath param --- .../GoogleDriveMacLocationPresetsProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/cryptomator/common/locationpresets/GoogleDriveMacLocationPresetsProvider.java b/src/main/java/org/cryptomator/common/locationpresets/GoogleDriveMacLocationPresetsProvider.java index 2bf952e82..65c913dee 100644 --- a/src/main/java/org/cryptomator/common/locationpresets/GoogleDriveMacLocationPresetsProvider.java +++ b/src/main/java/org/cryptomator/common/locationpresets/GoogleDriveMacLocationPresetsProvider.java @@ -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) {