Skip to content

Commit

Permalink
rubocop: enable Style/MultilineIfModifier
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Dec 28, 2023
1 parent 742db74 commit 027a4bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .rubocop.yml
Expand Up @@ -133,12 +133,6 @@ Style/GuardClause:
- 'src/include/security/users.rb'
- 'src/modules/Security.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/MultilineIfModifier:
Exclude:
- 'src/include/security/widgets.rb'

# Offense count: 4
Style/MultilineTernaryOperator:
Exclude:
Expand Down
5 changes: 4 additions & 1 deletion src/include/security/widgets.rb
Expand Up @@ -261,9 +261,12 @@ def initialize_security_widgets(_include_target)
}
}

return unless @display_manager
return if @display_manager.shutdown_var_name.empty?

@WIDGETS.merge!(
@display_manager.shutdown_var_name => shutdown_login_manager_widget
) if @display_manager && !@display_manager.shutdown_var_name.empty?
)
end

def shutdown_login_manager_widget
Expand Down

0 comments on commit 027a4bd

Please sign in to comment.