Skip to content

Commit

Permalink
update eslint curly rule to google js style (#2263)
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankenny committed May 16, 2017
1 parent c908e81 commit fb791e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module.exports = {
"quotes": [2, "single"],
"strict": [2, "global"],
"prefer-const": 2,
curly: [2, "multi-line"],

// Disabled rules
"require-jsdoc": 0,
Expand Down
3 changes: 2 additions & 1 deletion plots/ab-screenshot/screenshot-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,9 @@ function createScreenshotImageElement(screenshot) {
image.addEventListener('mouseleave', () => {
shouldHidePopover = true;
setTimeout(_ => {
if (shouldHidePopover)
if (shouldHidePopover) {
imagePopoverElement.classList.add('hidden');
}
}, 200);
});
return image;
Expand Down

0 comments on commit fb791e4

Please sign in to comment.