diff options
Diffstat (limited to 'rhimport/fetcher.go')
-rw-r--r-- | rhimport/fetcher.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rhimport/fetcher.go b/rhimport/fetcher.go index 9d5280b..a253eb4 100644 --- a/rhimport/fetcher.go +++ b/rhimport/fetcher.go @@ -374,14 +374,14 @@ func fetcherInit() { } } -func checkPassword(ctx *Context, result *Result) (err error) { +func checkPassword(ctx *Context, res *Result) (err error) { ok := false if ok, err = ctx.CheckPassword(); err != nil { return } if !ok { - result.ResponseCode = http.StatusUnauthorized - result.ErrorString = "invalid username and/or password" + res.ResponseCode = http.StatusUnauthorized + res.ErrorString = "invalid username and/or password" } return } |