Skip to content

Commit

Permalink
Fixes ipfs#183. Not modifying the mutating opts object per comments
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakgarg committed Mar 27, 2020
1 parent 1b028fb commit c9accce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion request.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func checkAndConvertOptions(root *Command, opts OptMap, path []string) (OptMap,
}

for _, name := range opt.Names() {
if _, ok := opts[name]; name != k && ok {
if _, ok := options[name]; name != k && ok {
return options, fmt.Errorf("Duplicate command options were provided (%q and %q)",
k, name)
}
Expand Down

0 comments on commit c9accce

Please sign in to comment.