Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-topnotch committed Mar 15, 2024
1 parent a24226c commit b884f0c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/baseclient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ minio::s3::BucketExistsResponse minio::s3::BaseClient::BucketExists(
if (GetRegionResponse resp = GetRegion(args.bucket, args.region)) {
region = resp.region;
} else {
return (resp.code == "NoSuchBucket") ? BucketExistsResponse(false) : BucketExistsResponse(resp);
return (resp.code == "NoSuchBucket") ? BucketExistsResponse(false)
: BucketExistsResponse(resp);
}

Request req(http::Method::kHead, region, base_url_, args.extra_headers,
Expand All @@ -291,7 +292,8 @@ minio::s3::BucketExistsResponse minio::s3::BaseClient::BucketExists(
if (Response resp = Execute(req)) {
return true;
} else {
return (resp.code == "NoSuchBucket") ? BucketExistsResponse(false) : BucketExistsResponse(resp);
return (resp.code == "NoSuchBucket") ? BucketExistsResponse(false)
: BucketExistsResponse(resp);
}
}

Expand Down

0 comments on commit b884f0c

Please sign in to comment.