diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-12-28 23:17:29 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-12-31 01:03:24 +0100 |
commit | 2b4a8db032643ae61a3b05c24d121e124e0f8414 (patch) | |
tree | bd3cfea906147f80a0135e9353b222b91994cb25 /lib/strings.nix | |
parent | 67cfc7a8f68776cbd7cf73e3c79b4cdd3ea102c4 (diff) |
lib.strings.isStorePath: Use isSimpleCoercibleToString
Expecting no change in behavior.
Diffstat (limited to 'lib/strings.nix')
-rw-r--r-- | lib/strings.nix | 2 |
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 |