Class: RuboCop::Cop::Style::UnneededCondition
- Defined in:
- lib/rubocop/cop/style/unneeded_condition.rb
Constant Summary collapse
- YAYOI_MSG =
"ζ*'ヮ')ζ<うっうー!ダブルパイプ(`||`)を使いましょうねー!".freeze
- YAYOI_UNNEEDED_CONDITION =
"ζ*'ヮ')ζ<うっうー!いらない条件がありますよー!".freeze
Instance Method Summary collapse
Instance Method Details
#message(node) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/rubocop/cop/style/unneeded_condition.rb', line 10 def (node) if node.modifier_form? || !node.else_branch YAYOI_UNNEEDED_CONDITION else YAYOI_MSG end end |