Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
EpsilonPrime committed Sep 24, 2024
1 parent 522e999 commit ed0731c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/substrait/textplan/Any.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ any_cast(const std::any& value, const char* file, int line) { // NOLINT
::io::substrait::textplan::any_cast<ValueType>(Value, __FILE__, __LINE__)

// Casts the any if it matches the given type otherwise it returns nullopt.
#define ANY_CAST_IF(ValueType, value) \
value.type() != typeid(ValueType) \
? ::std::nullopt \
: ::std::make_optional(ANY_CAST(ValueType, value))
#define ANY_CAST_IF(ValueType, value) \
value.type() != typeid(ValueType) \
? ::std::nullopt \
: ::std::make_optional(ANY_CAST(ValueType, value))

} // namespace io::substrait::textplan

0 comments on commit ed0731c

Please sign in to comment.