summaryrefslogtreecommitdiff
path: root/src/rhctl/audio_switch.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2016-03-26 23:37:20 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2016-03-26 23:37:20 (GMT)
commit373034cb3b581e4fc991189057277dc5056c7abd (patch)
tree4a5dc6feecec51a897c7957e8b78c4aa60ffb612 /src/rhctl/audio_switch.go
parent25df91a97bdcd5d573083df1bf3dc6d5ff1ca9c4 (diff)
some cleanup
Diffstat (limited to 'src/rhctl/audio_switch.go')
-rw-r--r--src/rhctl/audio_switch.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rhctl/audio_switch.go b/src/rhctl/audio_switch.go
index 2e0a965..dc1955e 100644
--- a/src/rhctl/audio_switch.go
+++ b/src/rhctl/audio_switch.go
@@ -144,7 +144,7 @@ func (sw *AudioSwitch) Run() {
func SwitchInit(conf *Config) (sw *AudioSwitch, err error) {
sw = &AudioSwitch{}
sw.timeout = time.Second
- if conf.Audioswitch.Timeout.Duration > time.Duration(0) {
+ if conf.Audioswitch.Timeout.Duration > 0 {
sw.timeout = conf.Audioswitch.Timeout.Duration
}
sw.Commands = make(chan *SwitchCommand, 8)