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)
|
def coerce(num_units, den_units)
|
||||||
Number.new(if unitless?
|
Number.new(if unitless?
|
||||||
self.value
|
self.value
|
||||||
else
|
else
|
||||||
self.value * coercion_factor(self.numerator_units, num_units) /
|
self.value * coercion_factor(self.numerator_units, num_units) /
|
||||||
coercion_factor(self.denominator_units, den_units)
|
coercion_factor(self.denominator_units, den_units)
|
||||||
end, num_units, den_units)
|
end, num_units, den_units)
|
||||||
end
|
end
|
||||||
|
|
||||||
def coercion_factor(from_units, to_units)
|
def coercion_factor(from_units, to_units)
|
||||||
|
|
Loading…
Add table
Reference in a new issue