-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
migrate CheckRemoteWipeRemoteOperation to NextcloudClient #1472
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1472 +/- ##
============================================
+ Coverage 49.18% 49.34% +0.16%
- Complexity 1001 1004 +3
============================================
Files 208 208
Lines 7817 7820 +3
Branches 1016 1016
============================================
+ Hits 3845 3859 +14
+ Misses 3419 3406 -13
- Partials 553 555 +2
|
@@ -89,7 +90,7 @@ public static void beforeAll() throws InterruptedException, | |||
|
|||
url = Uri.parse(arguments.getString("TEST_SERVER_URL")); | |||
String loginName = arguments.getString("TEST_SERVER_USERNAME"); | |||
String password = arguments.getString("TEST_SERVER_PASSWORD"); | |||
password = arguments.getString("TEST_SERVER_PASSWORD"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why this variable was made static.
if (json.getBoolean(WIPE)) { | ||
result = new RemoteOperationResult(true, postMethod); | ||
result = new RemoteOperationResult<>(true, postMethod); | ||
} else { | ||
result = new RemoteOperationResult(false, postMethod); | ||
result = new RemoteOperationResult<>(false, postMethod); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I'm not mistaken, this if statement can be simplified to the following expression:
result = new RemoteOperationResult<>(json.getBoolean(WIPE), postMethod);
No description provided.