projects
/
go-signalcontext.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Improve Error.Error() performance
[go-signalcontext.git]
/
error.go
diff --git
a/error.go
b/error.go
index
c0a4f97
..
ac99fec
100644
(file)
--- a/
error.go
+++ b/
error.go
@@
-1,7
+1,6
@@
package signalcontext
import (
- "fmt"
"os"
)
@@
-16,5
+15,5
@@
func (e Error) Error() string {
}
func (e Error) String() string {
- return
fmt.Sprintf("received signal: %s", e.Signal
)
+ return
"received signal: " + e.Signal.String(
)
}