summaryrefslogtreecommitdiff
path: root/internal/config/args.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/config/args.go')
-rw-r--r--internal/config/args.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/config/args.go b/internal/config/args.go
index a671ae3..f721390 100644
--- a/internal/config/args.go
+++ b/internal/config/args.go
@@ -74,13 +74,13 @@ func (a *Args) String() string {
// SerializeOptions returns a string ready to be sent over the wire to the server.
func (a *Args) SerializeOptions() string {
- return fmt.Sprintf("quiet=%v:spartan=%v:serverless=%v", a.Quiet, a.Spartan, a.Serverless)
+ return fmt.Sprintf("quiet=%v:spartan=%v:serverless=%v", a.Quiet, a.Spartan,
+ a.Serverless)
}
// DeserializeOptions deserializes the options, but into a map.
func DeserializeOptions(opts []string) (map[string]string, error) {
options := make(map[string]string, len(opts))
-
for _, o := range opts {
kv := strings.SplitN(o, "=", 2)
if len(kv) != 2 {
@@ -97,9 +97,7 @@ func DeserializeOptions(opts []string) (map[string]string, error) {
}
val = string(decoded)
}
-
options[key] = val
}
-
return options, nil
}