about summary refs log tree commit diff
path: root/lib/strings.nix
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2022-12-28 23:17:29 +0100
committerRobert Hensing <robert@roberthensing.nl>2022-12-31 01:03:24 +0100
commit2b4a8db032643ae61a3b05c24d121e124e0f8414 (patch)
treebd3cfea906147f80a0135e9353b222b91994cb25 /lib/strings.nix
parent67cfc7a8f68776cbd7cf73e3c79b4cdd3ea102c4 (diff)
lib.strings.isStorePath: Use isSimpleCoercibleToString
Expecting no change in behavior.
Diffstat (limited to 'lib/strings.nix')
-rw-r--r--lib/strings.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/strings.nix b/lib/strings.nix
index 039a9ed1db1cf..5fba13822e3f5 100644
--- a/lib/strings.nix
+++ b/lib/strings.nix
@@ -829,7 +829,7 @@ rec {
        => false
   */
   isStorePath = x:
-    if !(isList x) && isCoercibleToString x then
+    if isSimpleCoercibleToString x then
       let str = toString x; in
       substring 0 1 str == "/"
       && dirOf str == storeDir