Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Jul 19, 2023
1 parent d3fee6e commit 38b27f3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions file/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type Error struct {
Location
Message string
Snippet string
Prev error
Prev error
}

func (e *Error) Error() string {
Expand Down Expand Up @@ -45,7 +45,6 @@ func (e *Error) Bind(source *Source) *Error {
return e
}


func (e *Error) Unwrap() error {
return e.Prev
}
Expand All @@ -54,7 +53,6 @@ func (e *Error) Wrap(err error) {
e.Prev = err
}


func (e *Error) format() string {
if e.Location.Empty() {
return e.Message
Expand Down

0 comments on commit 38b27f3

Please sign in to comment.