Skip to content

Commit 800f15e

Browse files
CEL Dev Teamcopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 942390433
1 parent a3fb693 commit 800f15e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

eval/internal/cel_value_equal.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ absl::optional<bool> MapEqual(const CelMap* t1, const CelMap* t2) {
101101
google::protobuf::Arena arena;
102102
auto list_keys = t1->ListKeys(&arena);
103103
if (!list_keys.ok()) {
104-
return absl::nullopt;
104+
return std::nullopt;
105105
}
106106
const CelList* keys = *list_keys;
107107
for (int i = 0; i < keys->size(); i++) {
@@ -166,7 +166,7 @@ template <class EqualityProvider>
166166
absl::optional<bool> HomogenousCelValueEqual(const CelValue& t1,
167167
const CelValue& t2) {
168168
if (t1.type() != t2.type()) {
169-
return absl::nullopt;
169+
return std::nullopt;
170170
}
171171
switch (t1.type()) {
172172
case Kind::kNullType:
@@ -198,7 +198,7 @@ absl::optional<bool> HomogenousCelValueEqual(const CelValue& t1,
198198
default:
199199
break;
200200
}
201-
return absl::nullopt;
201+
return std::nullopt;
202202
}
203203

204204
absl::optional<bool> HeterogeneousEqualProvider::operator()(
@@ -233,7 +233,7 @@ absl::optional<bool> CelValueEqualImpl(const CelValue& v1, const CelValue& v2) {
233233
// map containing an Error. Return no matching overload to propagate an error
234234
// instead of a false result.
235235
if (v1.IsError() || v1.IsUnknownSet() || v2.IsError() || v2.IsUnknownSet()) {
236-
return absl::nullopt;
236+
return std::nullopt;
237237
}
238238

239239
return false;

0 commit comments

Comments
 (0)