Skip to content

Commit

Permalink
Merge pull request #4998 from nextcloud/ci/removeOneWarningOnWindows
Browse files Browse the repository at this point in the history
do not ignore return value
  • Loading branch information
mgallien committed Oct 11, 2022
2 parents 4ddfaa7 + 74f3519 commit bde2f90
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libsync/vfs/cfapi/vfs_cfapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,7 @@ void VfsCfApi::requestHydration(const QString &requestId, const QString &path)

// Set in the database that we should download the file
SyncJournalFileRecord record;
journal->getFileRecord(relativePath, &record);
if (!record.isValid()) {
if (!journal->getFileRecord(relativePath, &record) || !record.isValid()) {
qCInfo(lcCfApi) << "Couldn't hydrate, did not find file in db";
emit hydrationRequestFailed(requestId);
return;
Expand Down

0 comments on commit bde2f90

Please sign in to comment.