Skip to content

Commit 988d9c7

Browse files
committed
Fix lint
1 parent 419d792 commit 988d9c7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/sass/value/color.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ class Color
5151
def initialize(**options)
5252
unless options.key?(:space)
5353
options[:space] = case options
54-
in {red: _, green: _, blue: _}
54+
in { red: _, green: _, blue: _ }
5555
'rgb'
56-
in {hue: _, saturation: _, lightness: _}
56+
in { hue: _, saturation: _, lightness: _ }
5757
'hsl'
58-
in {hue: _, whiteness: _, blackness: _}
58+
in { hue: _, whiteness: _, blackness: _ }
5959
'hwb'
6060
else
6161
raise Sass::ScriptError.new('No color space found', 'space')
@@ -207,17 +207,17 @@ def change(**options)
207207

208208
if legacy? && !space_set_explictly
209209
case options
210-
in {whiteness: _} | {blackness: _}
210+
in { whiteness: _ } | { blackness: _ }
211211
space = Space::HWB
212-
in {saturation: _} | {lightness: _}
212+
in { saturation: _ } | { lightness: _ }
213213
space = Space::HSL
214-
in {hue: _}
214+
in { hue: _ }
215215
space = if _space == Space::HWB
216216
Space::HWB
217217
else
218218
Space::HSL
219219
end
220-
in {red: _} | {blue: _} | {green: _}
220+
in { red: _ } | { blue: _ } | { green: _ }
221221
space = Space::RGB
222222
else
223223
end

0 commit comments

Comments
 (0)