Remove useless else.

This commit is contained in:
tastytea 2020-01-16 18:20:37 +01:00
parent bdd328ac91
commit c01ba95f5a
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -57,10 +57,7 @@ string unescape_html(string html)
{ {
return static_cast<char32_t>(stol(match[2].str(), nullptr, 16)); return static_cast<char32_t>(stol(match[2].str(), nullptr, 16));
} }
else return static_cast<char32_t>(stol(match[2].str(), nullptr, 10));
{
return static_cast<char32_t>(stol(match[2].str(), nullptr, 10));
}
}()}; }()};
output += match.prefix().str() + u8c.to_bytes(codepoint); output += match.prefix().str() + u8c.to_bytes(codepoint);
buffer = match.suffix().str(); buffer = match.suffix().str();