From 8c9f9c549b1e7ecd8fa2d58d39bf41a6a1c8a389 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 19 Aug 2021 17:27:47 +0200 Subject: [PATCH] Lint: Ignore gocritic for fatal program exit not running unlock Signed-off-by: Knut Ahlers --- functions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.go b/functions.go index 60178c7..1b3a789 100644 --- a/functions.go +++ b/functions.go @@ -46,7 +46,7 @@ func (t *templateFuncProvider) Register(name string, fg plugins.TemplateFuncGett defer t.lock.Unlock() if _, ok := t.funcs[name]; ok { - log.Fatalf("Duplicate registration of %q template function", name) + log.Fatalf("Duplicate registration of %q template function", name) //nolint:gocritic // Yeah, the unlock will not run but the process will end } t.funcs[name] = fg