lib/fb_graph/connections/picture.rb in fb_graph-1.8.0.alpha vs lib/fb_graph/connections/picture.rb in fb_graph-1.8.0.alpha2
- old
+ new
@@ -2,13 +2,12 @@
module Connections
module Picture
def picture(size = nil)
_endpoint_ = "#{self.endpoint}/picture"
if size
- "#{_endpoint_}?type=#{size}"
- else
- _endpoint_
+ _endpoint_ += "?type=#{size}"
end
+ _endpoint_
end
end
end
end
\ No newline at end of file