1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-26 23:53:19 +08:00

commands: Fixed value mutation bug in Request#SetOption

This commit is contained in:
Matt Bell
2014-11-11 23:14:01 -08:00
committed by Juan Batiz-Benet
parent 6faeee8300
commit 8c9ee52a93

View File

@ -92,7 +92,7 @@ func (r *request) SetOption(name string, val interface{}) {
// try all the possible names, if we already have a value then set over it
for _, n := range option.Names {
val, found := r.options[n]
_, found := r.options[n]
if found {
r.options[n] = val
return