Skip to content

Commit

Permalink
check localETag in correct place
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Nov 11, 2024
1 parent a89dd03 commit c204eb2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,12 @@ private RemoteOperationResult checkForChanges(OwnCloudClient client) throws Oper
}

OCFile remoteFolder = FileStorageUtils.fillOCFile(remoteFile);
if (mLocalFolder == null) {
return new RemoteOperationResult<>(ResultCode.LOCAL_FILE_NOT_FOUND);
}

String localETag = mLocalFolder.getEtag();
if (mLocalFolder == null || localETag == null) {
if (localETag == null) {
return new RemoteOperationResult<>(ResultCode.LOCAL_FILE_NOT_FOUND);
}

Expand Down

0 comments on commit c204eb2

Please sign in to comment.