Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Commit 3d00951

Browse files
committed
Changes to make the linters happy.
1 parent 2a34790 commit 3d00951

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

lib/tasks/remove_classroom_users_without_github_org_access.rake

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ task :remove_classroom_users_without_github_org_access do
1111

1212
github_org_ids.each do |gh_id|
1313
github_org = GitHubOrganization.new(user.github_client, gh_id)
14+
next unless github_org.admin?(user.github_user.login)
1415

15-
if !github_org.admin?(user.github_user.login)
16-
payload = {
17-
"action": "member_removed",
18-
"membership": { "user": { "id": user.github_user.id } },
19-
"organization": { "id": gh_id } }
16+
payload = {
17+
"action": "member_removed",
18+
"membership": { "user": { "id": user.github_user.id } },
19+
"organization": { "id": gh_id }
20+
}
2021

21-
OrganizationEventJob.perform_later(payload)
22+
OrganizationEventJob.perform_later(payload)
2223
end
2324
end
2425
end

0 commit comments

Comments
 (0)