Skip to content

Commit 635e5ee

Browse files
author
Michael Potter
committed
adhere to style guide CI/CD feedback
1 parent afcbcc2 commit 635e5ee

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/traces/sankey/plot.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,24 +64,24 @@ function nodeNonHoveredStyle(sankeyNode, d, sankey) {
6464
}
6565

6666
function linkHoveredStyle(d, sankey, visitNodes, sankeyLink) {
67-
if (!linkStyleInitialized) {
67+
if(!linkStyleInitialized) {
6868
// Figure out whether the user has provided their own sankey-link-hover style.
6969
var styleExists = false;
70-
for (var i=0; i<document.styleSheets.length; i++) {
70+
for(var i = 0; i < document.styleSheets.length; i++) {
7171
var rules = document.styleSheets[i].cssRules;
72-
for (var j=0; j < rules.length; j++) {
73-
if (rules[j].selectorText === '.sankey-link-hover') {
72+
for(var j = 0; j < rules.length; j++) {
73+
if(rules[j].selectorText === '.sankey-link-hover') {
7474
styleExists = true;
7575
break;
7676
}
7777
}
78-
if (styleExists) break;
78+
if(styleExists) break;
7979
}
80-
80+
8181
// If not, insert a default one
82-
if (!styleExists) {
82+
if(!styleExists) {
8383
var style = document.querySelector('style');
84-
if (!style) {
84+
if(!style) {
8585
style = document.createElement('style');
8686
document.head.appendChild(style);
8787
}

0 commit comments

Comments
 (0)