Skip to content

Commit 127d24d

Browse files
committed
Removed too many single quotes last time
1 parent 9261ca4 commit 127d24d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def initiate_check_run
133133

134134
# Run RuboCop on all files in the repository
135135
@report = `rubocop '#{repository}' --format json`
136-
logger.debug '#{@report}'
136+
logger.debug @report
137137
`rm -rf #{repository}`
138138
@output = JSON.parse @report
139139
annotations = []
@@ -222,7 +222,7 @@ def take_requested_action
222222
Dir.chdir(repository)
223223
begin
224224
@git.commit_all('Automatically fix Octo RuboCop notices.')
225-
@git.push('https://x-access-token:#{@installation_token.to_s}@github.com/#{full_repo_name}.git', head_branch)
225+
@git.push("https://x-access-token:#{@installation_token.to_s}@github.com/#{full_repo_name}.git", head_branch)
226226
rescue
227227
# Nothing to commit!
228228
puts 'Nothing to commit'
@@ -239,7 +239,7 @@ def take_requested_action
239239
# repository - The repository name
240240
# ref - The branch, commit SHA, or tag to check out
241241
def clone_repository(full_repo_name, repository, ref)
242-
@git = Git.clone('https://x-access-token:#{@installation_token.to_s}@github.com/#{full_repo_name}.git', repository)
242+
@git = Git.clone("https://x-access-token:#{@installation_token.to_s}@github.com/#{full_repo_name}.git", repository)
243243
pwd = Dir.getwd()
244244
Dir.chdir(repository)
245245
@git.pull
@@ -257,7 +257,7 @@ def get_payload_request(request)
257257
begin
258258
@payload = JSON.parse @payload_raw
259259
rescue => e
260-
fail 'Invalid JSON (#{e}): #{@payload_raw}'
260+
fail "Invalid JSON (#{e}): #{@payload_raw}"
261261
end
262262
end
263263

0 commit comments

Comments
 (0)