]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/api_read.builder
Remove unnecessary div
[rails.git] / app / views / user / api_read.builder
index 0e8bfa5eff34f1e5358fb75ceab8c6e36cf16558..fe5af4bcf6cfa547c108fec36eb9270a4cdfe0a4 100644 (file)
@@ -10,9 +10,7 @@ xml.osm("version" => API_VERSION, "generator" => GENERATOR) do
     else
       xml.tag! "contributor-terms", :agreed => @this_user.terms_agreed.present?
     end
     else
       xml.tag! "contributor-terms", :agreed => @this_user.terms_agreed.present?
     end
-    if @this_user.image.file? || @this_user.image_use_gravatar
-      xml.tag! "img", :href => user_image_url(@this_user, :size => 256)
-    end
+    xml.tag! "img", :href => user_image_url(@this_user, :size => 256) if @this_user.image.file? || @this_user.image_use_gravatar
     xml.tag! "roles" do
       @this_user.roles.each do |role|
         xml.tag! role.role
     xml.tag! "roles" do
       @this_user.roles.each do |role|
         xml.tag! role.role