From 8c9ee52a934b6fc26f47e3cb01f69a3431b94ca7 Mon Sep 17 00:00:00 2001 From: Matt Bell Date: Tue, 11 Nov 2014 23:14:01 -0800 Subject: [PATCH] commands: Fixed value mutation bug in Request#SetOption --- commands/request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/request.go b/commands/request.go index d2b018219..ef29145b4 100644 --- a/commands/request.go +++ b/commands/request.go @@ -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