diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-04-01 13:55:27 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-04-01 13:55:27 (GMT) |
commit | df49dff4c6f96d1c2e032cc93e7b6bdb57f11833 (patch) | |
tree | 81950673916bfa235caf83e82cb8b8cc380a33ff /src/rhctl/audio_switch_command.go | |
parent | ee832bac958585259ac26f59be23b0c7aed26a94 (diff) |
some cleanups
Diffstat (limited to 'src/rhctl/audio_switch_command.go')
-rw-r--r-- | src/rhctl/audio_switch_command.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rhctl/audio_switch_command.go b/src/rhctl/audio_switch_command.go index df357a6..d3aef7e 100644 --- a/src/rhctl/audio_switch_command.go +++ b/src/rhctl/audio_switch_command.go @@ -206,14 +206,15 @@ func SwitchCommandParseAudio(args []string) (cmdstr SwitchCmdString, cmdargs []i return } - var onum SwitchOutputNum + onum := SwitchOutputNum(0) if args[0] != "all" { if err = onum.FromString(args[0]); err != nil { return } cmdargs = append(cmdargs, onum) } - var inum SwitchInputNum + + inum := SwitchInputNum(0) if len(args) == 3 { if err = inum.FromString(args[2]); err != nil { return |