mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 11:51:17 +00:00
Lint: Ignore gocritic for fatal program exit not running unlock
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
810e18c93a
commit
8c9f9c549b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue