Skip to content

Commit 28fb969

Browse files
Tensorstore Teamcopybara-github
authored andcommitted
Dereference optional when checking boolean flag.
PiperOrigin-RevId: 809204710 Change-Id: Iaddd8165768859268c3e409c8ffe5f87b52b7a11
1 parent 8387f21 commit 28fb969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorstore/kvstore/gcs_grpc/default_endpoint.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ bool UseDirectPathGcsEndpointByDefaultImpl() {
4242
if (auto disable_direct_path =
4343
internal::GetFlagOrEnvValue(FLAGS_tensorstore_disable_direct_path,
4444
"GOOGLE_CLOUD_DISABLE_DIRECT_PATH");
45-
disable_direct_path.has_value() && disable_direct_path) {
45+
disable_direct_path.has_value() && *disable_direct_path) {
4646
return false;
4747
}
4848

0 commit comments

Comments
 (0)