diff options
-rw-r--r-- | .rubocop_todo.yml | 7 | ||||
-rw-r--r-- | lib/redmine/scm/adapters/abstract_adapter.rb | 4 |
2 files changed, 2 insertions, 9 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index b1f11b93d..e3abaef8a 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1867,13 +1867,6 @@ Style/WordArray: Enabled: false # Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: forbid_for_all_comparison_operators, forbid_for_equality_operators_only, require_for_all_comparison_operators, require_for_equality_operators_only -Style/YodaCondition: - Exclude: - - 'lib/redmine/scm/adapters/abstract_adapter.rb' - -# Cop supports --auto-correct. Style/ZeroLengthPredicate: Exclude: - 'app/models/import.rb' diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb index ccd993bd5..83d41c22a 100644 --- a/lib/redmine/scm/adapters/abstract_adapter.rb +++ b/lib/redmine/scm/adapters/abstract_adapter.rb @@ -329,11 +329,11 @@ module Redmine end def is_file? - 'file' == self.kind + self.kind == 'file' end def is_dir? - 'dir' == self.kind + self.kind == 'dir' end def is_text? |