From 8d6e3dd27d35d79d2a111f3f388bcfcb775e42bd Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Tue, 14 Nov 2017 15:37:03 +0000 Subject: [PATCH] fix lint --- src/components/structures/MatrixChat.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 90c84afa7b..f2df1df851 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -921,7 +921,7 @@ module.exports = React.createClass({ styleElements[theme].disabled = false; - let switchTheme = function() { + const switchTheme = function() { const colors = Tinter.getCurrentColors(); Object.values(styleElements).forEach((a) => { if (a == styleElements[theme]) return; @@ -933,9 +933,8 @@ module.exports = React.createClass({ if (styleElements[theme].complete) { switchTheme(); - } - else { - styleElements[theme].onload = () => { + } else { + styleElements[theme].onload = () => { switchTheme(); }; }