Skip to content

Commit

Permalink
Consider empty page token when no more pages
Browse files Browse the repository at this point in the history
  • Loading branch information
kangkyu committed Nov 12, 2020
1 parent bb8ec2d commit 36fcd97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/yt/actions/list.rb
Expand Up @@ -75,7 +75,7 @@ def attributes_for_new_item(data)
end

def more_pages?
@last_index.zero? || !@page_token.nil?
@last_index.zero? || @page_token.present?
end

def next_page
Expand Down

0 comments on commit 36fcd97

Please sign in to comment.