diff options
Diffstat (limited to 'src/libstore/path.cc')
-rw-r--r-- | src/libstore/path.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/path.cc b/src/libstore/path.cc index 3c6b9fc10..c896ff927 100644 --- a/src/libstore/path.cc +++ b/src/libstore/path.cc @@ -42,7 +42,7 @@ StorePath::StorePath(const Hash & hash, std::string_view _name) bool StorePath::isDerivation() const { - return hasSuffix(name(), drvExtension); + return name().ends_with(drvExtension); } StorePath StorePath::dummy("ffffffffffffffffffffffffffffffff-x"); |