Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e40ee60

Browse files
committedFeb 16, 2024
Minor fix for appending scopes
1 parent de988df commit e40ee60

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎providers/hubspot/hubspot.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,7 @@ func newConfig(provider *Provider, scopes []string) *oauth2.Config {
150150
}
151151

152152
if len(scopes) > 0 {
153-
for _, scope := range scopes {
154-
c.Scopes = append(c.Scopes, scope)
155-
}
153+
c.Scopes = append(c.Scopes, scopes...)
156154
}
157155

158156
return c

0 commit comments

Comments
 (0)
Please sign in to comment.