From ac41d89ba5d715918324c49630d0eac8283c4895 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 13 Nov 2021 18:33:34 +0100 Subject: refactor(readTree): Flip argument order of argFilter Since the filters return 'args', this makes nesting of filters more readable. Change-Id: I775252460e3e077cc6db2fab6f3948414a95ecbf Reviewed-on: https://cl.tvl.fyi/c/depot/+/3873 Tested-by: BuildkiteCI Reviewed-by: sterni --- default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index 5c93e9501e..fcd83d07ad 100644 --- a/default.nix +++ b/default.nix @@ -20,7 +20,7 @@ let # Create a readTree filter disallowing access to the specified # top-level folder in other parts of the depot, except for specific # exceptions specified by their (full) paths. - restrictFolder = { folder, exceptions ? [], reason }: args: parts: + restrictFolder = { folder, exceptions ? [], reason }: parts: args: if (elemAt parts 0) == folder || elem parts exceptions then args else args // { -- cgit 1.4.1