mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
enforce coding convention
replaced every `and` by `&&` and every `or` by `||`
This commit is contained in:
@@ -3,7 +3,7 @@ module ImageSizer
|
||||
# Resize an image to the aspect ratio we want
|
||||
def self.resize(width, height)
|
||||
max_width = SiteSetting.max_image_width.to_f
|
||||
return nil if width.blank? or height.blank?
|
||||
return nil if width.blank? || height.blank?
|
||||
|
||||
w = width.to_f
|
||||
h = height.to_f
|
||||
|
||||
Reference in New Issue
Block a user