Skip to content

Commit 2c7eda1

Browse files
author
Michael Potter
committed
fix linter issues
1 parent 58bb631 commit 2c7eda1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/traces/sankey/defaults.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,21 +69,20 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
6969

7070
function makeDefaultHoverColor(_linkColor) {
7171
var tc = tinycolor(_linkColor);
72-
if (!tc.isValid()) {
72+
if(!tc.isValid()) {
7373
// hopefully the user-specified color is valid, but if not that can be caught elsewhere
7474
return _linkColor;
7575
}
7676
var alpha = tc.getAlpha();
77-
if (alpha <= 0.8) {
77+
if(alpha <= 0.8) {
7878
tc.setAlpha(alpha + 0.2);
79-
}
80-
else {
79+
} else {
8180
tc = darkBG ? tc.brighten() : tc.darken();
8281
}
8382
return tc.toRgbString();
8483
}
8584

86-
coerceLink('hovercolor', Array.isArray(linkColor) ?
85+
coerceLink('hovercolor', Array.isArray(linkColor) ?
8786
linkColor.map(makeDefaultHoverColor) :
8887
makeDefaultHoverColor(linkColor)
8988
);

0 commit comments

Comments
 (0)