Skip to content

Commit

Permalink
Fix npe when --info and not --server
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles-Antoine Mathieu committed Oct 3, 2020
1 parent 2dfa5b8 commit 7085059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func LoadConfig(opts docopt.Opts) (config *CliConfig, err error) {
config = NewUploadConfig()

// Bypass ~/.plikrc file creation if quiet mode and/or --server flag
if opts["--quiet"].(bool) || opts["--server"].(string) != "" {
if opts["--quiet"].(bool) || (opts["--server"] != nil && opts["--server"].(string) != "") {
return config, nil
}

Expand Down

0 comments on commit 7085059

Please sign in to comment.