Skip to content

Commit 5602fd2

Browse files
committed
Fix redundant get() call on smart pointer in oauth2_consent.cpp
Remove redundant get() call on smart pointer, as recommended by ClangTidyReadability. #gemini
1 parent 0454309 commit 5602fd2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

base/cvd/cuttlefish/host/libs/web/oauth2_consent.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ Result<std::unique_ptr<CredentialSource>> CredentialForScopes(
295295
}
296296
Result<std::unique_ptr<CredentialSource>> credential =
297297
CredentialForScopes(http_client, scopes, credential_path);
298-
if (credential.ok() && credential->get() != nullptr) {
298+
if (credential.ok() && *credential != nullptr) {
299299
return std::move(*credential);
300300
}
301301
}

0 commit comments

Comments
 (0)