@cryptotaxi247 / kubo / commits / 53e135987

commands: Silently skip unrecognized options, it should be up to the transport to decide if they cause an error

Matt Bell committed Oct 27, 2014 at 14:47 UTC 53e13598712d56e5f295eb3c2f49e61d1e92f9a5
1 file changed +1 -1
commands/request.go
+1 -1
@@ -95,7 +95,7 @@ func (r *request) ConvertOptions(options map[string]Option) error {
95 for k, v := range r.options {
96 opt, ok := options[k]
97 if !ok {
98 - return fmt.Errorf("Unrecognized option: '%s'", k)
98 + continue
99 }
100
101 kind := reflect.TypeOf(v).Kind()