From: Andy Allan Date: Wed, 7 Sep 2016 09:59:00 +0000 (+0100) Subject: User.consider_pd is boolean, so no need for double negation. X-Git-Tag: live~4381 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/924f9fa08348786e2a73f60ec29f6becd953fabe User.consider_pd is boolean, so no need for double negation. --- diff --git a/app/views/user/api_read.builder b/app/views/user/api_read.builder index e97695420..2b304f53c 100644 --- a/app/views/user/api_read.builder +++ b/app/views/user/api_read.builder @@ -8,7 +8,7 @@ xml.osm("version" => API_VERSION, "generator" => GENERATOR) do end if @user && @user == @this_user xml.tag! "contributor-terms", :agreed => !!@this_user.terms_agreed, - :pd => !!@this_user.consider_pd + :pd => @this_user.consider_pd else xml.tag! "contributor-terms", :agreed => !!@this_user.terms_agreed end