Swap unless nil? to if
This commit is contained in:
parent
06a8fe8169
commit
1d1965e7fb
|
@ -178,7 +178,7 @@ module GitHubChangelogGenerator
|
||||||
fetched_pr = closed_pull_requests.find do |fpr|
|
fetched_pr = closed_pull_requests.find do |fpr|
|
||||||
fpr.number == pr.number
|
fpr.number == pr.number
|
||||||
end
|
end
|
||||||
unless fetched_pr.nil?
|
if fetched_pr
|
||||||
pr[:merged_at] = fetched_pr[:merged_at]
|
pr[:merged_at] = fetched_pr[:merged_at]
|
||||||
closed_pull_requests.delete(fetched_pr)
|
closed_pull_requests.delete(fetched_pr)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user