Fix Style/SafeNavigation rubocop warnings
This commit is contained in:
parent
6c2093b29d
commit
64146b4f36
16 changed files with 34 additions and 59 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue