From 9b50125b86c36ecf3e290c99e323239994fa77a7 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 18 Jun 2017 16:17:55 +0200 Subject: types.label: drop redundant isString --- lib/types.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/types.nix b/lib/types.nix index 5a01e5b0..f9ec7b1c 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -426,8 +426,7 @@ rec { label = mkOptionType { name = "label"; # TODO case-insensitive labels - check = x: isString x - && test "[0-9A-Za-z]([0-9A-Za-z-]*[0-9A-Za-z])?" x; + check = test "[0-9A-Za-z]([0-9A-Za-z-]*[0-9A-Za-z])?"; merge = mergeOneOption; }; -- cgit v1.2.3