Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
nrwiersma committed Feb 6, 2025
1 parent cd17427 commit ef10d48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func newEncoderContext(cfg *frozenConfig) *encoderContext {
}
}

//nolint:dupl
func decoderOfType(d *decoderContext, schema Schema, typ reflect2.Type) ValDecoder {
if dec := createDecoderOfMarshaler(schema, typ); dec != nil {
return dec
Expand Down Expand Up @@ -189,6 +190,7 @@ func (e *onePtrEncoder) Encode(ptr unsafe.Pointer, w *Writer) {
e.enc.Encode(noescape(unsafe.Pointer(&ptr)), w)
}

//nolint:dupl
func encoderOfType(e *encoderContext, schema Schema, typ reflect2.Type) ValEncoder {
if enc := createEncoderOfMarshaler(schema, typ); enc != nil {
return enc
Expand Down

0 comments on commit ef10d48

Please sign in to comment.