1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

rubocop: fix Style/YodaCondition of lib/redmine/scm/adapters/abstract_adapter.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18351 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-08-04 17:05:24 +00:00
parent 44cbd0eaa9
commit 118fff34aa
2 changed files with 2 additions and 9 deletions

View File

@ -1866,13 +1866,6 @@ Style/WhileUntilModifier:
Style/WordArray: Style/WordArray:
Enabled: false 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. # Cop supports --auto-correct.
Style/ZeroLengthPredicate: Style/ZeroLengthPredicate:
Exclude: Exclude:

View File

@ -329,11 +329,11 @@ module Redmine
end end
def is_file? def is_file?
'file' == self.kind self.kind == 'file'
end end
def is_dir? def is_dir?
'dir' == self.kind self.kind == 'dir'
end end
def is_text? def is_text?