Skip to content

Commit

Permalink
Removed code duplication in ResponseConverter.
Browse files Browse the repository at this point in the history
  • Loading branch information
tszolar committed Sep 8, 2014
1 parent dc331d1 commit f7167ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kosapi_client/response_converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def convert(response)

def convert_paginated(response)
items = response.items || []
converted_items = items.map{ |p| convert_type(p, detect_type(p)) }
converted_items = items.map{ |p| convert_single(p) }
Entity::ResultPage.new(converted_items, create_links(response))
end

Expand Down

0 comments on commit f7167ea

Please sign in to comment.