Skip to content

Commit b51f7d6

Browse files
Chris ZhuChris Zhu
authored andcommitted
lint errors
1 parent e784a15 commit b51f7d6

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

app/actions/providers/create_or_update_github_app_provider.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Providers::CreateOrUpdateGithubAppProvider
1919
access_token: context.installation_id,
2020
auth: {
2121
info: {
22-
username: installation.account.login,
22+
username: installation.account.login
2323
},
2424
installation_id: context.installation_id
2525
}.to_json

app/controllers/integrations/github/repositories_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class Integrations::Github::RepositoriesController < ApplicationController
22
def index
33
# Preference the github provider
4-
provider = current_user.providers.where(provider: [Provider::GITHUB_PROVIDER, Provider::GITHUB_APP_PROVIDER]).first
4+
provider = current_user.providers.where(provider: [ Provider::GITHUB_PROVIDER, Provider::GITHUB_APP_PROVIDER ]).first
55

66
client = Octokit::Client.new(bearer_token: provider.access_token)
77

app/controllers/projects_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def project_params
9999
def set_provider
100100
@selected_provider = params[:provider] || Provider::GITHUB_PROVIDER
101101
if @selected_provider == Provider::GITHUB_PROVIDER
102-
@providers = current_user.providers.where(provider: [Provider::GITHUB_PROVIDER, Provider::GITHUB_APP_PROVIDER])
102+
@providers = current_user.providers.where(provider: [ Provider::GITHUB_PROVIDER, Provider::GITHUB_APP_PROVIDER ])
103103
else
104104
@providers = current_user.providers.where(provider: @selected_provider)
105105
end

spec/actions/providers/create_or_update_github_app_provider_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,4 @@
157157
end
158158
end
159159
end
160-
end
160+
end

0 commit comments

Comments
 (0)