Skip to content

Commit

Permalink
Rename type error variable
Browse files Browse the repository at this point in the history
  • Loading branch information
eddy-aws committed Nov 19, 2022
1 parent 0622cb0 commit 1740546
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions private/protocol/jsonrpc/unmarshal_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ func NewUnmarshalTypedError(exceptions map[string]func(protocol.ResponseMetadata
}

func NewUnmarshalTypedErrorWithOptions(exceptions map[string]func(protocol.ResponseMetadata) error, optFns ...func(*UnmarshalTypedError)) *UnmarshalTypedError {
err := NewUnmarshalTypedError(exceptions)
unmarshaledError := NewUnmarshalTypedError(exceptions)
for _, fn := range optFns {
fn(err)
fn(unmarshaledError)
}
return err
return unmarshaledError
}

func WithQueryCompatibility() func(*UnmarshalTypedError) {
Expand Down

0 comments on commit 1740546

Please sign in to comment.