Skip to content

Commit

Permalink
Merge pull request #79 from cho4036/minor_fix
Browse files Browse the repository at this point in the history
bug fix: fix NPE logic
  • Loading branch information
cho4036 authored Jun 16, 2023
2 parents 7e4d43f + d26ae96 commit fa30c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/usecase/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,9 @@ func makingCookie(organizationId, userName, password string) ([]*http.Cookie, er
resp, err := client.Do(req)
if err != nil {
log.Errorf("Error while creating new request: %v", err)
return nil, err
}
cookies := resp.Cookies()
log.Info(cookies)
if len(cookies) < 1 {
return nil, fmt.Errorf("no cookie found")
}
Expand Down

0 comments on commit fa30c53

Please sign in to comment.