Skip to content

Commit 0e42703

Browse files
committed
tweaks
1 parent 86435ef commit 0e42703

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

jamfprointegration/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (j *Integration) checkRefreshToken() error {
3737

3838
// Protects against bad token lifetime/buffer combinations (infinite loops)
3939
if j.auth.tokenExpired() || j.auth.tokenInBuffer() {
40-
return errors.New("token lifetime is shorter than buffer period. please adjust parameters.")
40+
return errors.New("token lifetime is shorter than buffer period. please adjust parameters")
4141
}
4242

4343
return nil

jamfprointegration/load_balancer_workaround.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func chooseMostAlphabeticalString(strings []string) string {
4242
}
4343

4444
func (j *Integration) getAllLoadBalancers(urlString string) (*[]string, error) {
45-
var cookiesList []*http.Cookie
45+
4646
var outList []string
4747
var err error
4848
var req *http.Request
@@ -67,9 +67,8 @@ func (j *Integration) getAllLoadBalancers(urlString string) (*[]string, error) {
6767

6868
respCookies := resp.Cookies()
6969

70-
for i, v := range respCookies {
70+
for _, v := range respCookies {
7171
if v.Name == LoadBalancerTargetCookie {
72-
cookiesList = append(cookiesList, respCookies[i])
7372
outList = append(outList, v.Value)
7473
}
7574
}

0 commit comments

Comments
 (0)