AO3-5538 Update tag set nominations with old tagname when renaming tags #1268
Annotations
1 warning
rubocop:
app/models/tag.rb#L1192
[rubocop] reported by reviewdog 🐶
Use a guard clause (`return unless saved_change_to_name? && name_before_last_save.present?`) instead of wrapping the code inside a conditional expression.
Raw Output:
app/models/tag.rb:1192:5: C: Style/GuardClause: Use a guard clause (`return unless saved_change_to_name? && name_before_last_save.present?`) instead of wrapping the code inside a conditional expression.
|
Loading