Skip to content

Commit

Permalink
style: rubocop fix
Browse files Browse the repository at this point in the history
  • Loading branch information
knarewski committed Oct 14, 2024
1 parent 78e2b31 commit 55003bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/morandi/image_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ def get_pixbuf
# @scale = @max_size_px ? @max_size_px / [width, height].max : 1.0
actual_max = [@pb.width, @pb.height].max
src_max = if @max_size_px
[width, height].max
else
[@pb.width, @pb.height].max
end
[width, height].max
else
[@pb.width, @pb.height].max
end

@scale = actual_max / src_max.to_f
end
Expand Down

0 comments on commit 55003bb

Please sign in to comment.