Swap unless nil? to if

This commit is contained in:
Steve Gilvarry 2015-11-19 20:14:04 +11:00
parent 06a8fe8169
commit 1d1965e7fb

View File

@ -178,7 +178,7 @@ module GitHubChangelogGenerator
fetched_pr = closed_pull_requests.find do |fpr|
fpr.number == pr.number
end
unless fetched_pr.nil?
if fetched_pr
pr[:merged_at] = fetched_pr[:merged_at]
closed_pull_requests.delete(fetched_pr)
end