Remove error return value from ConvertToOptions

ConvertToOptions can't return any error.
This commit is contained in:
akarki15
2016-11-15 22:03:32 -05:00
parent b1fdbf714b
commit fedde804e3
4 changed files with 197 additions and 277 deletions

View File

@@ -30,10 +30,7 @@ func initClientUsingBookmark(bookmarkPath, bookmarkName string) (*client.Client,
if err != nil {
return nil, err
}
opt, err := bookmark.ConvertToOptions()
if err != nil {
return nil, err
}
opt := bookmark.ConvertToOptions()
var connStr string
if opt.Url != "" { // if the bookmark has url set, use it
connStr = opt.Url