Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Claudio Cambra <[email protected]>
Signed-off-by: Joshua Noeske <[email protected]>
  • Loading branch information
PatrickJosh and claucambra authored Jan 5, 2025
1 parent e14655f commit 42cd0f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/gui/ocsjob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ bool OcsJob::finished()

} else {
// save new ETag value
auto etagHeader = reply()->header(QNetworkRequest::ETagHeader);
if (etagHeader.isValid()) {
if (const auto etagHeader = reply()->header(QNetworkRequest::ETagHeader); etagHeader.isValid()) {
emit etagResponseHeaderReceived(etagHeader.toByteArray(), statusCode);
}

Expand Down
3 changes: 1 addition & 2 deletions src/libsync/networkjobs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -999,8 +999,7 @@ bool JsonApiJob::finished()
}

// save new ETag value
auto etagHeader = reply()->header(QNetworkRequest::ETagHeader);
if (etagHeader.isValid()) {
if (const auto etagHeader = reply()->header(QNetworkRequest::ETagHeader); etagHeader.isValid()) {
emit etagResponseHeaderReceived(etagHeader.toByteArray(), statusCode);
}

Expand Down

0 comments on commit 42cd0f9

Please sign in to comment.