0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-29 08:54:02 +01:00

ircd: Fix semantic error.

This commit is contained in:
Jason Volk 2017-04-01 18:02:46 -07:00
parent e4f258314a
commit bd383562fd

View file

@ -341,7 +341,7 @@ ircd::lstrip(const string_view &str,
const char &c)
{
const auto pos(str.find_first_not_of(c));
return pos != string_view::npos? string_view{str.substr(pos)} : str;
return pos != string_view::npos? string_view{str.substr(pos)} : string_view{};
}
inline ircd::string_view
@ -349,7 +349,7 @@ ircd::lstrip(const string_view &str,
const string_view &c)
{
const auto pos(str.find_first_not_of(c));
return pos != string_view::npos? string_view{str.substr(pos)} : str;
return pos != string_view::npos? string_view{str.substr(pos)} : string_view{};
}
inline ircd::string_view