Commit 79fbe92b authored by Tim Cooper's avatar Tim Cooper Committed by Brad Fitzpatrick

os/signal: remove unnecessary else condition

Change-Id: I00f0195d54bf9bc30073741974ab941ec4d51a5c
Reviewed-on: https://go-review.googlesource.com/108635Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 555eb70d
...@@ -88,11 +88,8 @@ func Ignore(sig ...os.Signal) { ...@@ -88,11 +88,8 @@ func Ignore(sig ...os.Signal) {
// Ignored reports whether sig is currently ignored. // Ignored reports whether sig is currently ignored.
func Ignored(sig os.Signal) bool { func Ignored(sig os.Signal) bool {
if sn := signum(sig); sn < 0 { sn := signum(sig)
return false return sn >= 0 && signalIgnored(sn)
} else {
return signalIgnored(sn)
}
} }
// Notify causes package signal to relay incoming signals to c. // Notify causes package signal to relay incoming signals to c.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment