Skip to content

Commit

Permalink
Fixing rubocop stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
dasunpubudumal committed Jan 30, 2025
1 parent 55d5ab3 commit 24bfbe1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/models/print_job_wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ def printer

def label_template
lt = LabelTemplate.find_by(name: label_template_name)
if lt.nil?
errors.add(:label_template_name, 'does not exist')
end
errors.add(:label_template_name, 'does not exist') if lt.nil?
lt
end

Expand Down

0 comments on commit 24bfbe1

Please sign in to comment.