From da14935d91efea35b24f88d2361b4dddf5da918f Mon Sep 17 00:00:00 2001 From: PikachuEXE Date: Tue, 28 Sep 2021 11:05:54 +0800 Subject: [PATCH] Remove no longer valid optimization The old optimization was rewritten but left this conditional statement which does nothing now https://github.com/evilmartians/lefthook/pull/184 --- cmd/templates/hook.tmpl | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/templates/hook.tmpl b/cmd/templates/hook.tmpl index 4fbf82f4..451712f1 100644 --- a/cmd/templates/hook.tmpl +++ b/cmd/templates/hook.tmpl @@ -15,9 +15,6 @@ call_lefthook() if lefthook{{.Extension}} -h >/dev/null 2>&1 then eval lefthook{{.Extension}} $@ - elif test -f "$dir/node_modules/@arkweid/lefthook/bin/lefthook{{.Extension}}" - then - eval "$dir/node_modules/@arkweid/lefthook/bin/lefthook{{.Extension}} $@" elif bundle exec lefthook -h >/dev/null 2>&1 then bundle exec lefthook $@