]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/user_roles_helper.rb
Fix Style/SafeNavigation rubocop warnings
[rails.git] / app / helpers / user_roles_helper.rb
index 93e090b0fd7c2d3941ddfe06f69250d997732b1e..0b7e9c6162c2c2365a558594daf40a7ac3572b05 100644 (file)
@@ -6,7 +6,7 @@ module UserRolesHelper
   end
 
   def role_icon(user, role)
-    if current_user && current_user.administrator?
+    if current_user&.administrator?
       if user.has_role?(role)
         image = "roles/#{role}"
         alt = t("user.show.role.revoke.#{role}")