Skip to content

Commit 383e69f

Browse files
committed
Shortern a return statement
1 parent 5b43634 commit 383e69f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

google/cloud/storage/internal/object_metadata_parser.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ void SetIfNotEmpty(char const* key, std::string const& value,
4747
*/
4848
void SetJsonContextsIfNotEmpty(ObjectMetadata const& meta,
4949
nlohmann::json& json) {
50-
if (!meta.has_contexts()) {
51-
return;
52-
}
50+
if (!meta.has_contexts()) return;
5351

5452
nlohmann::json custom_json;
5553
for (auto const& kv : meta.contexts().custom()) {

0 commit comments

Comments
 (0)