Skip to content

Commit

Permalink
Corrected Rubocop offences
Browse files Browse the repository at this point in the history
  • Loading branch information
johntopleyons committed Apr 4, 2023
1 parent 9fd3158 commit 39eb49c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions webapp/lib/github.rb
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ def initialize(enterprise, organisation, base_uri, token)
@client = Graphlient::Client.new("#{base_uri}/graphql",
headers: { 'Authorization' => "Bearer #{token}" },
http_options: { read_timeout: 20 },
schema_path: File.join(__dir__, 'graphql', 'schema.json'))
schema_path: File.join(__dir__, 'graphql', 'schema.json'))
end

def all_outside_collaborators
Expand Down Expand Up @@ -808,7 +808,8 @@ def two_factor_disabled_users
two_factor_disabled_users = []

while next_page
users = @client.query(TWO_FACTOR_DISABLED_USERS_QUERY, { login: @organisation, slug: @enterprise, first: 100, after: })
users = @client.query(TWO_FACTOR_DISABLED_USERS_QUERY,
{ login: @organisation, slug: @enterprise, first: 100, after: })
raise GitHubError, users.errors unless users.errors.empty?

after = users.data.enterprise.owner_info.affiliated_users_with_two_factor_disabled.page_info.end_cursor
Expand Down

0 comments on commit 39eb49c

Please sign in to comment.