Procházet zdrojové kódy

Fix during CI

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky před 4 roky
rodič
revize
d29e0305ef

+ 2 - 4
src/main/java/com/nextcloud/client/network/ConnectivityServiceImpl.java

@@ -74,11 +74,9 @@ class ConnectivityServiceImpl implements ConnectivityService {
 
             int status = get.execute(client);
 
-            boolean result = !(status == HttpStatus.SC_NO_CONTENT && (get.getResponseContentLength() == 0));
+            boolean result = !(status == HttpStatus.SC_NO_CONTENT && get.getResponseContentLength() == 0);
 
-            if (get != null) {
-                get.releaseConnection();
-            }
+            get.releaseConnection();
 
             return result;
         } else {