瀏覽代碼

address TODOs

Armin Schrenk 2 年之前
父節點
當前提交
08d741ecf5

+ 1 - 1
src/main/java/org/cryptomator/common/mount/Mounter.java

@@ -107,7 +107,7 @@ public class Mounter {
 						//mountpoint must exist
 						throw new MountPointNotExistsException(e.getMessage());
 					} else {
-						//TODO: if (!canMountToDir && canMountToParent && !Files.notExists(userChosenMountPoint)) {
+						//TODO: add specific exception for !canMountToDir && canMountToParent && !Files.notExists(userChosenMountPoint)
 						throw new IllegalMountPointException(e.getMessage());
 					}
 				}

+ 0 - 2
src/main/java/org/cryptomator/common/vaults/Vault.java

@@ -345,10 +345,8 @@ public class Vault {
 	public boolean supportsForcedUnmount() {
 		var mh = mountHandle.get();
 		if (mh == null) {
-			//TODO: or return false?
 			throw new IllegalStateException("Vault is not mounted");
 		}
-		;
 		return mountHandle.get().supportsUnmountForced();
 	}
 

+ 1 - 1
src/main/java/org/cryptomator/ui/preferences/VolumePreferencesController.java

@@ -82,7 +82,7 @@ public class VolumePreferencesController implements FxController {
 
 		@Override
 		public String toString(MountService provider) {
-			return provider== null? "Automatic" : provider.displayName(); //TODO: adjust message
+			return provider.displayName();
 		}
 
 		@Override