mirror of https://github.com/golang/go.git
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:
parent
555eb70db2
commit
79fbe92b7e
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue