migrate CheckRemoteWipeRemoteOperation to NextcloudClient#1472
Open
tobiasKaminsky wants to merge 1 commit intomasterfrom
Open
migrate CheckRemoteWipeRemoteOperation to NextcloudClient#1472tobiasKaminsky wants to merge 1 commit intomasterfrom
tobiasKaminsky wants to merge 1 commit intomasterfrom
Conversation
Contributor
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
|
ZetaTom
reviewed
Jun 26, 2024
library/src/androidTest/java/com/owncloud/android/AbstractIT.java
Outdated
Show resolved
Hide resolved
Comment on lines
54
to
72
| 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); |
Contributor
There was a problem hiding this comment.
If I'm not mistaken, this if statement can be simplified to the following expression:
result = new RemoteOperationResult<>(json.getBoolean(WIPE), postMethod);Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
78167d8 to
095acc9
Compare
Contributor
Collaborator
|
master-IT test failed: https://www.kaminsky.me/nc-dev/android-library-integrationTests/4626-IT-master-10-28/debug/ |
Collaborator
|
stable-IT test failed: https://www.kaminsky.me/nc-dev/android-library-integrationTests/4626-IT-stable-10-30/debug/ |
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Used by: nextcloud/android#15856