mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 16:59:26 +00:00
lint: fix receiver naming and formatting in testservice_test.go
This commit is contained in:
parent
e232b073d6
commit
173a4f7730
1 changed files with 3 additions and 3 deletions
|
|
@ -133,9 +133,9 @@ type largeDataError struct {
|
|||
Data string
|
||||
}
|
||||
|
||||
func (e largeDataError) Error() string { return "largeDataError" }
|
||||
func (e largeDataError) ErrorCode() int { return 555 }
|
||||
func (e largeDataError) ErrorData() interface{} { return e.Data }
|
||||
func (l largeDataError) Error() string { return "largeDataError" }
|
||||
func (l largeDataError) ErrorCode() int { return 555 }
|
||||
func (l largeDataError) ErrorData() interface{} { return l.Data }
|
||||
|
||||
func (s *testService) ReturnLargeDataError(n int) error {
|
||||
return largeDataError{Data: strings.Repeat("x", n)}
|
||||
|
|
|
|||
Loading…
Reference in a new issue