mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
Simplify
This commit is contained in:
parent
e0c19ee620
commit
0884f180f5
5 changed files with 23 additions and 27 deletions
|
|
@ -1330,7 +1330,7 @@ bool statusOk(int status)
|
|||
}
|
||||
|
||||
|
||||
bool hasPrefix(const string & s, const string & prefix)
|
||||
bool hasPrefix(std::string_view s, std::string_view prefix)
|
||||
{
|
||||
return s.compare(0, prefix.size(), prefix) == 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue