Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update lib/panoramio.rb

  • Loading branch information...
commit 673a31bd5b231118ee3ab758fd95790594926d36 1 parent 6c18b8f
@christianhellsten authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/panoramio.rb
View
6 lib/panoramio.rb
@@ -145,10 +145,8 @@ def to_uri(options)
end
def to_photos(json)
- # fix for 'no photos''
- if json['photos'].first.nil?
- return Array.new
- end
+ # fix for 'no photos'
+ return [] if json['photos'].first.nil?
# issues with redefinition
if defined? Struct::Photo
Please sign in to comment.
Something went wrong with that request. Please try again.