winconsole: cleanup

Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
Tibor Vass 2015-03-22 12:55:21 -04:00
parent 9cc42dea7c
commit 4cbedb8d54
4 changed files with 261 additions and 342 deletions

View file

@ -211,7 +211,7 @@ func parseInt16OrDefault(s string, defaultValue int16) (n int16, err error) {
return defaultValue, nil
}
parsedValue, err := strconv.ParseInt(s, 10, 16)
if nil != err {
if err != nil {
return defaultValue, err
}
return int16(parsedValue), nil