mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 23:40:57 +01:00
ircd: Fix semantic error.
This commit is contained in:
parent
e4f258314a
commit
bd383562fd
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue