Skip to content

Commit 342550a

Browse files
committed
Minor code formatting.
1 parent 5cf0bcd commit 342550a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

libs/server-sdk/src/hooks/hook.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ EvaluationSeriesData::EvaluationSeriesData(
4141
: data_(std::move(data)) {}
4242

4343
std::optional<Value> EvaluationSeriesData::Get(std::string const& key) const {
44-
auto it = data_.find(key);
45-
if (it != data_.end() && it->second.value) {
44+
if (const auto it = data_.find(key); it != data_.end() && it->second.value) {
4645
return it->second.value;
4746
}
4847
return std::nullopt;

0 commit comments

Comments
 (0)