Skip to content

Commit

Permalink
refactor: use method instead of private member
Browse files Browse the repository at this point in the history
  • Loading branch information
siyul-park committed Dec 13, 2023
1 parent 6f73b30 commit 2709918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scheme/scheme.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (s *Scheme) Decode(spec Spec) (node.Node, error) {
}
}

if codec, ok := s.codecs[kind]; ok {
if codec, ok := s.Codec(kind); ok {
return codec.Decode(spec)
}
return nil, errors.WithStack(encoding.ErrUnsupportedValue)
Expand Down

0 comments on commit 2709918

Please sign in to comment.