summaryrefslogtreecommitdiff
path: root/src/enum.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/enum.hh')
-rw-r--r--src/enum.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/enum.hh b/src/enum.hh
index af532391..77979e59 100644
--- a/src/enum.hh
+++ b/src/enum.hh
@@ -66,8 +66,8 @@ EnableIfWithoutBitOps<Enum> option_from_string(StringView str, Enum& e)
{
constexpr auto desc = enum_desc(Enum{});
auto it = find_if(desc, [str](const EnumDesc<Enum>& d) { return d.name == str; });
- if (it == desc.end())
- throw runtime_error(format("invalid enum value '{}'", str));
+ if (it == desc.end())
+ throw runtime_error(format("invalid enum value '{}'", str));
e = it->value;
}