From 29ec7ba03a1a52afbb065c588d066c43d8478c9c Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Tue, 1 Oct 2019 19:33:46 +0100 Subject: [PATCH] Apply linter --- ElectronClient/app/gui/NoteText.jsx | 3 +-- ElectronClient/app/theme.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ElectronClient/app/gui/NoteText.jsx b/ElectronClient/app/gui/NoteText.jsx index 9fa7ef0d0..43d23f588 100644 --- a/ElectronClient/app/gui/NoteText.jsx +++ b/ElectronClient/app/gui/NoteText.jsx @@ -1461,8 +1461,7 @@ class NoteTextComponent extends React.Component { if (match && match.length > 0) { // Follow the same newline style this.wrapSelectionWithStrings(`\`\`\`${match[0]}`, `${match[0]}\`\`\``); - } - else { + } else { this.wrapSelectionWithStrings('`', '`'); } } diff --git a/ElectronClient/app/theme.js b/ElectronClient/app/theme.js index ee883293c..ca4e06c85 100644 --- a/ElectronClient/app/theme.js +++ b/ElectronClient/app/theme.js @@ -405,8 +405,7 @@ function themeStyle(theme) { output = Object.assign({}, output, solarizedLightStyle); } else if (theme == Setting.THEME_SOLARIZED_DARK) { output = Object.assign({}, output, solarizedDarkStyle); - } - else if (theme == Setting.THEME_DRACULA) { + } else if (theme == Setting.THEME_DRACULA) { output = Object.assign({}, output, draculaStyle); }