Skip to content

Commit c249913

Browse files
committed
Use variadic opts parameter in processJSONDecode
1 parent 103d036 commit c249913

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/go-yaml/json.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func processJSONLoad(reader io.Reader, pretty bool, opts ...yaml.Option) error {
5959
}
6060

6161
// processJSONDecode uses deprecated Decoder.Decode for YAML processing (no options support)
62-
func processJSONDecode(reader io.Reader, pretty bool, opts []yaml.Option) error {
62+
func processJSONDecode(reader io.Reader, pretty bool, opts ...yaml.Option) error {
6363
decoder := yaml.NewDecoder(reader)
6464

6565
for {

0 commit comments

Comments
 (0)