Skip to content

Commit

Permalink
chore: encoder clean up unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
muktihari committed Sep 19, 2024
1 parent 7b0e7c9 commit 208e893
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions encoder/encoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ func (f fnValidate) Validate(mesg *proto.Message) error { return f(mesg) }
func (f fnValidate) Reset() {}

var (
fnValidateOK = fnValidate(func(mesg *proto.Message) error { return nil })
fnValidateErr = fnValidate(func(mesg *proto.Message) error { return fmt.Errorf("validate error") })
fnValidateOK = fnValidate(func(mesg *proto.Message) error { return nil })
)

func TestOptions(t *testing.T) {
Expand Down

0 comments on commit 208e893

Please sign in to comment.