]> Cypherpunks repositories - gostls13.git/commit
flag: simplify switch-case in isZeroValue
authorGabriel Aszalos <gabriel.aszalos@gmail.com>
Tue, 17 Oct 2017 17:57:01 +0000 (19:57 +0200)
committerIan Lance Taylor <iant@golang.org>
Tue, 17 Oct 2017 20:23:14 +0000 (20:23 +0000)
commit5f740d6875ab6961381f2f4614b21ff6ddf448a4
tree0d0a30a2736541e9b88984673034049e7d3e003a
parent58cf881c1c61544d467b265950a942ec2aeb9d28
flag: simplify switch-case in isZeroValue

Simplifies the switch statement in the isZeroValue function by merging
the case branches.

Change-Id: I5b27939b62808dadac0cef632567b17e0e2b9a1d
Reviewed-on: https://go-review.googlesource.com/71390
Run-TryBot: Gabriel Aszalos <gabriel.aszalos@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/flag/flag.go