chore: slice append replace loop (#1358)
This commit is contained in:
4
server/auth/external/nylas/nylas.go
vendored
4
server/auth/external/nylas/nylas.go
vendored
@@ -156,9 +156,7 @@ func newConfig(provider *Provider, authURL, tokenURL string, scopes []string) *o
|
||||
Scopes: []string{},
|
||||
}
|
||||
|
||||
for _, scope := range scopes {
|
||||
c.Scopes = append(c.Scopes, scope)
|
||||
}
|
||||
c.Scopes = append(c.Scopes, scopes...)
|
||||
|
||||
return c
|
||||
}
|
||||
|
||||
@@ -98,9 +98,7 @@ func (ri Identifiers) Add(ii ...string) Identifiers {
|
||||
|
||||
func (ri Identifiers) Clone() Identifiers {
|
||||
out := make(Identifiers, 0, len(ri))
|
||||
for _, i := range ri {
|
||||
out = append(out, i)
|
||||
}
|
||||
out = append(out, ri...)
|
||||
|
||||
return out
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user