mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-14 16:58:34 +00:00
'str_to_type' has a non-throwing exception specification but can still throw #31
This commit is contained in:
parent
129731da56
commit
e5ecca4f38
1 changed files with 1 additions and 2 deletions
|
@ -66,9 +66,8 @@ inline enum type str_to_type(const jwt::string_view typ) noexcept
|
|||
if (!strcasecmp(typ.data(), "jwt")) return type::JWT;
|
||||
else if(!strcasecmp(typ.data(), "none")) return type::NONE;
|
||||
|
||||
throw std::runtime_error("Unknown token type");
|
||||
|
||||
assert (0 && "Code not reached");
|
||||
return type::NONE;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue