Skip to content

Commit 311ed16

Browse files
committed
cpp linter
1 parent 07c45c3 commit 311ed16

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/iceberg/test/update_statistics_test.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@ class UpdateStatisticsTest : public UpdateTestBase {
6060
std::shared_ptr<StatisticsFile> FindStatistics(
6161
const std::vector<std::pair<int64_t, std::shared_ptr<StatisticsFile>>>& to_set,
6262
int64_t snapshot_id) {
63-
auto it = std::find_if(to_set.begin(), to_set.end(), [snapshot_id](const auto& p) {
64-
return p.first == snapshot_id;
65-
});
63+
auto it = std::ranges::find_if(
64+
to_set, [snapshot_id](const auto& p) { return p.first == snapshot_id; });
6665
return it != to_set.end() ? it->second : nullptr;
6766
}
6867
};

0 commit comments

Comments
 (0)