Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.

Commit 8c27a6e

Browse files
committed
code clean up
1 parent bed57c9 commit 8c27a6e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

affiliation/identity.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (a *Affiliation) AddIdentity(identity *Identity) bool {
9595

9696
endpoint := a.AffBaseURL + "/affiliation/" + url.PathEscape(a.ProjectSlug) + "/add_identity/" + url.PathEscape(identity.Source)
9797
statusCode, res, err := a.httpClientProvider.Request(strings.TrimSpace(endpoint), "POST", headers, nil, queryParams)
98-
if statusCode != httpNative.StatusOK {
98+
if statusCode != http.StatusOK {
9999
if err != nil {
100100
log.Println("AddIdentity: Could not insert the identity: ", err)
101101
}
@@ -217,7 +217,7 @@ func (a *Affiliation) GetIdentityByUser(key string, value string) (*AffIdentity,
217217
statusCode, res, err := a.httpClientProvider.Request(strings.TrimSpace(endpoint), "GET", headers, nil, nil)
218218
switch statusCode {
219219
case http.StatusBadRequest, http.StatusNotFound:
220-
log.Println("GetIdentityByUser: Could not get the identity: ", err)
220+
log.Println("GetIdentityByUser: Could not get the identity: l", err)
221221
return &AffIdentity{}, errors.New("identity not found")
222222
case http.StatusOK:
223223
default:

0 commit comments

Comments
 (0)