Fix Style/SafeNavigation rubocop warnings

This commit is contained in:
Tom Hughes 2018-09-22 17:21:06 +01:00
parent 6c2093b29d
commit 64146b4f36
16 changed files with 34 additions and 59 deletions

View file

@ -70,6 +70,6 @@ class OldController < ApplicationController
private
def show_redactions?
current_user && current_user.moderator? && params[:show_redactions] == "true"
current_user&.moderator? && params[:show_redactions] == "true"
end
end