ci: use revive instead of golint (#2370)

This commit is contained in:
Caleb Doxsey 2021-07-16 10:26:47 -06:00 committed by GitHub
parent d45a7e9996
commit 2a5dcc2848
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 11 deletions

View file

@ -58,15 +58,12 @@ func newDeltaCollection(p *Provider) *deltaCollection {
//
// Only the changed groups/members are returned. Removed groups/members have an @removed property.
func (dc *deltaCollection) Sync(ctx context.Context) error {
if err := dc.syncGroups(ctx); err != nil {
err := dc.syncGroups(ctx)
if err != nil {
return err
}
if err := dc.syncUsers(ctx); err != nil {
return err
}
return nil
return dc.syncUsers(ctx)
}
func (dc *deltaCollection) syncGroups(ctx context.Context) error {