From 02126b69e5f5744cc677a0a025ccabb3b3ca865a Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Sun, 19 Mar 2017 14:51:04 +0100 Subject: [PATCH] lib.readPathsFromFile: simplify, /cc #24036 This part isn't needed after 36de745e1b7. --- lib/strings.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/strings.nix b/lib/strings.nix index 44b6f8780c8..ffa93c8e454 100644 --- a/lib/strings.nix +++ b/lib/strings.nix @@ -476,9 +476,7 @@ rec { readPathsFromFile = rootPath: file: let root = toString rootPath; - lines = - builtins.map (lib.removeSuffix "\n") - (lib.splitString "\n" (builtins.readFile file)); + lines = lib.splitString "\n" (builtins.readFile file); removeComments = lib.filter (line: line != "" && !(lib.hasPrefix "#" line)); relativePaths = removeComments lines; absolutePaths = builtins.map (path: builtins.toPath (root + "/" + path)) relativePaths;