Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge committed Jun 9, 2021
1 parent c9eb6fa commit ef9f02a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/coveralls.jl
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,8 @@ module Coveralls

event_path = open(JSON.Parser.parse, ENV["GITHUB_EVENT_PATH"])
github_pr_info = get(event_path, "pull_request", Dict())
github_pr = get(github_pr_info, "number", "")
github_pr_string = String(strip(_stringify_string_or_int(github_pr)))
github_pr_string::String
isempty(github_pr) || (data["service_pull_request"] = github_pr_string)
github_pr = String(strip(_stringify_string_or_int(get(github_pr_info, "number", ""))))
isempty(github_pr) || (data["service_pull_request"] = github_pr)
else
data["git"] = parse_git_info(git_info)
end
Expand Down

0 comments on commit ef9f02a

Please sign in to comment.