Upstream oklog/run state of the touched files before 8b4632a8c6

This commit is contained in:
upstream committed 2026-09-04 06:21:22 +02:00
1 parent db24f770ca
commit b0e6917276
2 files changed
+5 -27

No files matched your search

+5 -6
View File
@@ -82,15 +82,14 @@ func (e SignalError) Is(err error) bool {
}
// As fixes a design error in the SignalError type, so that errors.As with the
// literal `&SignalError{}` will return true and, per the errors.As contract,
// populate target with the underlying signal.
// literal `&SignalError{}` will return true.
func (e SignalError) As(target interface{}) bool {
t, ok := target.(*SignalError)
if !ok {
switch target.(type) {
case *SignalError, SignalError:
return true
default:
return false
}
*t = e
return true
}
// ErrSignal is returned by SignalHandler when a signal triggers termination.