diff options
author | zimbatm <zimbatm@zimbatm.com> | 2016-06-17 11:06:48 +0100 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2016-06-17 11:06:48 +0100 |
commit | bec28d748c854abda373ca38831f4e77bc276fc1 (patch) | |
tree | 6dad75becf4d734218891b5bd7a5e476faa5735d /lib/strings.nix | |
parent | 9bbac1f4eac3a880607d3ba6990fcb00fd031611 (diff) |
Remove unecessary branching on old nix versions
All these builtins are available since 1.10 or earlier (1.10 being the
lib/minver.nix)
Diffstat (limited to 'lib/strings.nix')
-rw-r--r-- | lib/strings.nix | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/strings.nix b/lib/strings.nix index 9e9bdd6e1535..7109bd4ec6e1 100644 --- a/lib/strings.nix +++ b/lib/strings.nix @@ -16,11 +16,7 @@ rec { concatStrings ["foo" "bar"] => "foobar" */ - concatStrings = - if builtins ? concatStringsSep then - builtins.concatStringsSep "" - else - lib.foldl' (x: y: x + y) ""; + concatStrings = builtins.concatStringsSep ""; /* Map a function over a list and concatenate the resulting strings. |