Skip to content

Commit eab03f2

Browse files
committed
emulator: clang-tidy fixes.
1 parent bd7f315 commit eab03f2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

google/cloud/bigtable/emulator/table.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ Status Table::MutateRow(google::bigtable::v2::MutateRowRequest const& request) {
239239
request.mutations());
240240
}
241241

242+
// NOLINTBEGIN(readability-function-cognitive-complexity)
242243
Status Table::DoMutationsWithPossibleRollback(
243244
std::string const& row_key,
244245
google::protobuf::RepeatedPtrField<google::bigtable::v2::Mutation> const&
@@ -307,6 +308,7 @@ Status Table::DoMutationsWithPossibleRollback(
307308

308309
return Status();
309310
}
311+
// NOLINTEND(readability-function-cognitive-complexity)
310312

311313
StatusOr<CellStream> Table::CreateCellStream(
312314
std::shared_ptr<StringRangeSet> range_set,
@@ -594,7 +596,7 @@ Status Table::SampleRowKeys(
594596
// returned.
595597
//
596598
// In such a case, return the last row key.
597-
if (!wrote_a_sample && row_offset_map.size() > 0) {
599+
if (!wrote_a_sample && !row_offset_map.empty()) {
598600
auto it = std::prev(row_offset_map.end());
599601

600602
google::bigtable::v2::SampleRowKeysResponse resp;

0 commit comments

Comments
 (0)