From 852a30ddffdc4b11829a430eaf37e00cbbe7207b Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 10 Feb 2019 04:45:20 +0100 Subject: fix go vet errors --- cmd/dolmetschctld/statemachine.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/dolmetschctld/statemachine.go') diff --git a/cmd/dolmetschctld/statemachine.go b/cmd/dolmetschctld/statemachine.go index d92965a..1961303 100644 --- a/cmd/dolmetschctld/statemachine.go +++ b/cmd/dolmetschctld/statemachine.go @@ -156,8 +156,8 @@ func (sm *StateMachine) AddLanguage(name Language, main, voice mixer.Channel) er return fmt.Errorf("language '%s' already exists", name) } for ch := range []mixer.Channel{main, voice} { - if l, exists := sm.languages[name]; exists { - return fmt.Errorf("mixer channel %v is already in use by language '%s'", ch, l) + if _, exists := sm.languages[name]; exists { + return fmt.Errorf("mixer channel %v is already in use by language '%s'", ch, name) } } -- cgit v1.2.3