check that page is not nil

This commit is contained in:
Petr Korolev 2016-06-06 10:23:38 +03:00
parent 9483c5edcb
commit 8bd4578e44

View File

@ -71,7 +71,7 @@ module GitHubChangelogGenerator
response.each_page do |page|
page_i += PER_PAGE_NUMBER
print_in_same_line("Fetching tags... #{page_i}/#{count_pages * PER_PAGE_NUMBER}")
tags.concat(page)
tags.concat(page) unless page.nil?
end
print_empty_line