Skip to content

Commit 309e5f6

Browse files
authored
less var access (mrdoob#26817)
1 parent c1bf227 commit 309e5f6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/math/Color.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -442,11 +442,7 @@ class Color {
442442

443443
this.getHSL( _hslA );
444444

445-
_hslA.h += h; _hslA.s += s; _hslA.l += l;
446-
447-
this.setHSL( _hslA.h, _hslA.s, _hslA.l );
448-
449-
return this;
445+
return this.setHSL( _hslA.h + h, _hslA.s + s, _hslA.l + l );
450446

451447
}
452448

0 commit comments

Comments
 (0)