summaryrefslogtreecommitdiff
path: root/cmd/dolmetschctld/statemachine.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-02-10 04:45:20 +0100
committerChristian Pointner <equinox@spreadspace.org>2019-02-10 04:45:20 +0100
commit852a30ddffdc4b11829a430eaf37e00cbbe7207b (patch)
tree5d6936f08efb6316692a8b42d29d10e9017a365f /cmd/dolmetschctld/statemachine.go
parentmake sure we don't miss events from mixer (diff)
fix go vet errors
Diffstat (limited to 'cmd/dolmetschctld/statemachine.go')
-rw-r--r--cmd/dolmetschctld/statemachine.go4
1 files changed, 2 insertions, 2 deletions
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)
}
}