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

Commit

Permalink
Changes to make the linters happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
JessRudder committed Nov 27, 2019
1 parent 2a34790 commit 3d00951
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/tasks/remove_classroom_users_without_github_org_access.rake
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ task :remove_classroom_users_without_github_org_access do

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

if !github_org.admin?(user.github_user.login)
payload = {
"action": "member_removed",
"membership": { "user": { "id": user.github_user.id } },
"organization": { "id": gh_id } }
payload = {
"action": "member_removed",
"membership": { "user": { "id": user.github_user.id } },
"organization": { "id": gh_id }
}

OrganizationEventJob.perform_later(payload)
OrganizationEventJob.perform_later(payload)
end
end
end
Expand Down

0 comments on commit 3d00951

Please sign in to comment.