Skip to content

Commit c9accce

Browse files
committed
Fixes ipfs#183. Not modifying the mutating opts object per comments
1 parent 1b028fb commit c9accce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

request.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func checkAndConvertOptions(root *Command, opts OptMap, path []string) (OptMap,
137137
}
138138

139139
for _, name := range opt.Names() {
140-
if _, ok := opts[name]; name != k && ok {
140+
if _, ok := options[name]; name != k && ok {
141141
return options, fmt.Errorf("Duplicate command options were provided (%q and %q)",
142142
k, name)
143143
}

0 commit comments

Comments
 (0)