Skip to content

Commit

Permalink
Made linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
stampy88 committed Apr 4, 2024
1 parent 478735e commit bdc185a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions codec_native.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ func createDecoderOfNative(schema *PrimitiveSchema, typ reflect2.Type) ValDecode
return &longCodec[int64]{}

case lt != "":
return &errorDecoder{err: fmt.Errorf("avro: %s is unsupported for Avro %s and logicalType %s", typ.String(), schema.Type(), lt)}
return &errorDecoder{err: fmt.Errorf("avro: %s is unsupported for Avro %s and logicalType %s",
typ.String(), schema.Type(), lt)}

default:
break
Expand Down Expand Up @@ -172,6 +173,7 @@ func createDecoderOfNative(schema *PrimitiveSchema, typ reflect2.Type) ValDecode
return &errorDecoder{err: fmt.Errorf("avro: %s is unsupported for Avro %s", typ.String(), schema.Type())}
}

//nolint:maintidx // Splitting this would not make it simpler.
func createEncoderOfNative(schema Schema, typ reflect2.Type) ValEncoder {
switch typ.Kind() {
case reflect.Bool:
Expand Down Expand Up @@ -239,7 +241,8 @@ func createEncoderOfNative(schema Schema, typ reflect2.Type) ValEncoder {
return &longCodec[int64]{}

case lt != "":
return &errorEncoder{err: fmt.Errorf("avro: %s is unsupported for Avro %s and logicalType %s", typ.String(), schema.Type(), lt)}
return &errorEncoder{err: fmt.Errorf("avro: %s is unsupported for Avro %s and logicalType %s",
typ.String(), schema.Type(), lt)}

default:
break
Expand Down

0 comments on commit bdc185a

Please sign in to comment.