Lint: Ignore gocritic for fatal program exit not running unlock

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-08-19 17:27:47 +02:00
parent 810e18c93a
commit 8c9f9c549b
Signed by: luzifer
GPG Key ID: 0066F03ED215AD7D

View File

@ -46,7 +46,7 @@ func (t *templateFuncProvider) Register(name string, fg plugins.TemplateFuncGett
defer t.lock.Unlock() defer t.lock.Unlock()
if _, ok := t.funcs[name]; ok { 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 t.funcs[name] = fg