Skip to content

Commit

Permalink
chore: encoder clean up unused variable (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
muktihari authored Sep 19, 2024
1 parent 499a23e commit 2b79f14
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 2b79f14

Please sign in to comment.