Skip to content

Commit

Permalink
fmt_test.go: remove redundant type conversion
Browse files Browse the repository at this point in the history
Change-Id: I700d2b25c91938caa2b90dc3cb0cc2d94a3e0daf
GitHub-Last-Rev: 6d7d064
GitHub-Pull-Request: #4
Reviewed-on: https://go-review.googlesource.com/c/xerrors/+/428985
Reviewed-by: Heschi Kreinick <[email protected]>
Run-TryBot: Heschi Kreinick <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Auto-Submit: Heschi Kreinick <[email protected]>
Reviewed-by: Damien Neil <[email protected]>
  • Loading branch information
cuishuang authored and gopherbot committed Sep 7, 2022
1 parent 65e6541 commit 04be3eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fmt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ type adapted struct {
err error
}

func (e adapted) Error() string { return string(e.msg) }
func (e adapted) Error() string { return e.msg }

func (e adapted) Format(s fmt.State, verb rune) {
xerrors.FormatError(e, s, verb)
Expand Down

0 comments on commit 04be3eb

Please sign in to comment.