mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[Sass] Fix a minor style error.
This commit is contained in:
parent
ce9e6bf795
commit
32f325f76e
1 changed files with 5 additions and 5 deletions
|
@ -273,11 +273,11 @@ module Sass::Script
|
|||
|
||||
def coerce(num_units, den_units)
|
||||
Number.new(if unitless?
|
||||
self.value
|
||||
else
|
||||
self.value * coercion_factor(self.numerator_units, num_units) /
|
||||
coercion_factor(self.denominator_units, den_units)
|
||||
end, num_units, den_units)
|
||||
self.value
|
||||
else
|
||||
self.value * coercion_factor(self.numerator_units, num_units) /
|
||||
coercion_factor(self.denominator_units, den_units)
|
||||
end, num_units, den_units)
|
||||
end
|
||||
|
||||
def coercion_factor(from_units, to_units)
|
||||
|
|
Loading…
Add table
Reference in a new issue