From 2b4a8db032643ae61a3b05c24d121e124e0f8414 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Wed, 28 Dec 2022 23:17:29 +0100 Subject: [PATCH] lib.strings.isStorePath: Use isSimpleCoercibleToString Expecting no change in behavior. --- lib/strings.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/strings.nix b/lib/strings.nix index 039a9ed1db1c..5fba13822e3f 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