os/signal: remove unnecessary else condition

Change-Id: I00f0195d54bf9bc30073741974ab941ec4d51a5c
Reviewed-on: https://go-review.googlesource.com/108635
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Tim Cooper 2018-04-21 08:20:39 -03:00 committed by Brad Fitzpatrick
parent 555eb70db2
commit 79fbe92b7e
1 changed files with 2 additions and 5 deletions

View File

@ -88,11 +88,8 @@ func Ignore(sig ...os.Signal) {
// Ignored reports whether sig is currently ignored.
func Ignored(sig os.Signal) bool {
if sn := signum(sig); sn < 0 {
return false
} else {
return signalIgnored(sn)
}
sn := signum(sig)
return sn >= 0 && signalIgnored(sn)
}
// Notify causes package signal to relay incoming signals to c.