Skip to content

Commit d923e29

Browse files
committed
style(auth): satisfy scope helper lint
1 parent fe3aa39 commit d923e29

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

internal/googleapi/client_auth.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ func tokenGrantedScopes(t *oauth2.Token) []string {
265265
scopes = append(scopes, s)
266266
}
267267
}
268+
268269
return normalizeScopeList(scopes)
269270
default:
270271
return nil
@@ -285,7 +286,9 @@ func normalizeScopeList(scopes []string) []string {
285286
for scope := range set {
286287
out = append(out, scope)
287288
}
289+
288290
sort.Strings(out)
291+
289292
return out
290293
}
291294

@@ -308,17 +311,20 @@ func scopesContainAll(haystack []string, needles []string) bool {
308311
return false
309312
}
310313
}
314+
311315
return true
312316
}
313317

314318
func stringSlicesEqual(a []string, b []string) bool {
315319
if len(a) != len(b) {
316320
return false
317321
}
322+
318323
for i := range a {
319324
if a[i] != b[i] {
320325
return false
321326
}
322327
}
328+
323329
return true
324330
}

0 commit comments

Comments
 (0)