Skip to content

Commit 1a152dc

Browse files
committed
fix moving status
1 parent 3994142 commit 1a152dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google/cloud/spanner/uuid.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ StatusOr<Uuid> MakeUuid(absl::string_view str) {
138138
}
139139

140140
auto high_bits = ParseHexBlock(str, original_str);
141-
if (!high_bits.ok()) return std::move(high_bits.status());
141+
if (!high_bits.ok()) return std::move(high_bits).status();
142142
auto low_bits = ParseHexBlock(str, original_str);
143-
if (!low_bits.ok()) return std::move(low_bits.status());
143+
if (!low_bits.ok()) return std::move(low_bits).status();
144144

145145
if (!str.empty()) {
146146
return internal::InvalidArgumentError(

0 commit comments

Comments
 (0)