瀏覽代碼

comparison reversed

Jan-Peter Klein 1 月之前
父節點
當前提交
f0aaec2058
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/main/java/org/cryptomator/ui/keyloading/KeyLoadingStrategy.java

+ 1 - 2
src/main/java/org/cryptomator/ui/keyloading/KeyLoadingStrategy.java

@@ -39,8 +39,7 @@ public interface KeyLoadingStrategy extends MasterkeyLoader {
 	 * @return {@code true} if the given key loader scheme represents a Hub Vault; {@code false} otherwise.
 	 */
 	static boolean isHubVault(String keyLoader) {
-		return keyLoader.equals(HubKeyLoadingStrategy.SCHEME_HUB_HTTP) ||
-				keyLoader.equals(HubKeyLoadingStrategy.SCHEME_HUB_HTTPS);
+		return HubKeyLoadingStrategy.SCHEME_HUB_HTTP.equals(keyLoader) || HubKeyLoadingStrategy.SCHEME_HUB_HTTPS.equals(keyLoader);
 	}
 
 	/**