Skip to content

Commit 9160a18

Browse files
committed
error: fix reciever name
1 parent 148f6f0 commit 9160a18

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

error.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const (
2222
ContentModified ErrorCode = -32801
2323
)
2424

25-
// Error ...
25+
// Error
2626
type Error struct {
2727

2828
// Code a number indicating the error type that occurred.
@@ -36,9 +36,9 @@ type Error struct {
3636
Message string `json:"message"`
3737
}
3838

39-
func (err *Error) Error() string {
40-
if err == nil {
39+
func (e *Error) Error() string {
40+
if e == nil {
4141
return ""
4242
}
43-
return err.Message
43+
return e.Message
4444
}

0 commit comments

Comments
 (0)