瀏覽代碼

fix codacy issue

David Luhmer 6 年之前
父節點
當前提交
6850d73c40
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/main/java/com/nextcloud/android/sso/InputStreamBinder.java

+ 3 - 1
src/main/java/com/nextcloud/android/sso/InputStreamBinder.java

@@ -220,8 +220,10 @@ public class InputStreamBinder extends IInputStreamService.Stub {
             // If response body is available
             if(inputStream != null) {
                 BufferedReader r = new BufferedReader(new InputStreamReader(inputStream));
-                for (String line; (line = r.readLine()) != null; ) {
+                String line = r.readLine();
+                while(line != null) {
                     total.append(line).append('\n');
+                    line = r.readLine();
                 }
                 Log_OC.e(TAG, total.toString());
             }