undo overzealous find/replace

This commit is contained in:
nate smith 2022-01-14 15:27:05 -06:00
parent 56522f9f14
commit 0a619d422a
18 changed files with 39 additions and 32 deletions

View file

@ -15,7 +15,7 @@ import (
)
type iconfig interface {
GetOrDefault(string, string) (string, error)
Get(string, string) (string, error)
Set(string, string, string) error
Write() error
}
@ -147,7 +147,7 @@ func Login(opts *LoginOptions) error {
var username string
if userValidated {
username, _ = cfg.GetOrDefault(hostname, "user")
username, _ = cfg.Get(hostname, "user")
} else {
apiClient := api.NewClientFromHTTP(httpClient)
var err error