Skip to content

Commit

Permalink
AO3-6587 Fix additional Rubocop concern about my hamfisted coding skillz
Browse files Browse the repository at this point in the history
  • Loading branch information
scottsds committed Dec 15, 2024
1 parent a378d49 commit 91036e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/models/concerns/justifiable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ module Justifiable
private

def strip_octothorpe
unless ticket_number.is_a?(Integer)
self.ticket_number = self.ticket_number.delete_prefix("#") unless self.ticket_number.nil?
end
return if ticket_number.is_a?(Integer)

Check warning on line 21 in app/models/concerns/justifiable.rb

View workflow job for this annotation

GitHub Actions / Rubocop

[rubocop] reported by reviewdog 🐶 Add empty line after guard clause. Raw Output: app/models/concerns/justifiable.rb:21:5: C: Layout/EmptyLineAfterGuardClause: Add empty line after guard clause.
self.ticket_number = self.ticket_number.delete_prefix("#") unless self.ticket_number.nil?
end

def enabled?
Expand Down

0 comments on commit 91036e4

Please sign in to comment.