diff options
author | Bluesaxorcist <joshua@operatorfoundation.org> | 2019-10-21 17:32:39 -0500 |
---|---|---|
committer | Bluesaxorcist <joshua@operatorfoundation.org> | 2019-10-21 17:32:39 -0500 |
commit | 4a56b1440c2bc315adda61b542793b7780cb8730 (patch) | |
tree | 819118b10e18373d6ddca31665ba3b7970849652 /common/options.go | |
parent | 770bc14548a6a48ccbc8be0f0583122cf1dc6f6e (diff) |
Removed termmon and fixed compiler warnings
Diffstat (limited to 'common/options.go')
-rw-r--r-- | common/options.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/options.go b/common/options.go index f0ededf..8382544 100644 --- a/common/options.go +++ b/common/options.go @@ -40,7 +40,7 @@ func ParseServerOptions(s string) (params map[string]map[string]interface{}, err return result, nil } -func CoerceToString(futureString interface{}) (*string, error) { +func CoerceToString(futureString interface{}) (string, error) { var result string switch futureString.(type) { @@ -48,10 +48,10 @@ func CoerceToString(futureString interface{}) (*string, error) { var icerr error result, icerr = interconv.ParseString(futureString) if icerr != nil { - return nil, icerr + return "", icerr } - return &result, nil + return result, nil default: - return nil, errors.New("unable to coerce empty interface to string") + return "", errors.New("unable to coerce empty interface to string") } }
\ No newline at end of file |