mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:21:12 +08:00
remove trailing whitespaces ❤️
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
module ImageSizer
|
||||
|
||||
# Resize an image to the aspect ratio we want
|
||||
def self.resize(width, height)
|
||||
def self.resize(width, height)
|
||||
max_width = SiteSetting.max_image_width.to_f
|
||||
return nil if width.blank? or height.blank?
|
||||
|
||||
|
||||
w = width.to_f
|
||||
h = height.to_f
|
||||
|
||||
|
Reference in New Issue
Block a user