From e5f3b755405ebf191835b449d08a2a8ac7dfebfb Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 2 Dec 2018 07:31:10 +0300 Subject: fix some minor linter problems --- js/tt-rss.js | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'js/tt-rss.js') diff --git a/js/tt-rss.js b/js/tt-rss.js index 9c5a78ce2..e6dbd1107 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -280,7 +280,7 @@ const App = { if (id) { Article.editArticleTags(id); } - } + }; this.hotkey_actions["open_in_new_window"] = function () { if (Article.getActiveArticleId()) { Article.openArticleInNewWindow(Article.getActiveArticleId()); @@ -504,23 +504,21 @@ const App = { CommonDialogs.editFeed(Feeds.getActiveFeedId()); break; case "qmcRemoveFeed": - var actid = Feeds.getActiveFeedId(); - - if (Feeds.activeFeedIsCat()) { - alert(__("You can't unsubscribe from the category.")); - return; - } + const actid = Feeds.getActiveFeedId(); if (!actid) { alert(__("Please select some feed first.")); return; } - var fn = Feeds.getFeedName(actid); + if (Feeds.activeFeedIsCat()) { + alert(__("You can't unsubscribe from the category.")); + return; + } - var pr = __("Unsubscribe from %s?").replace("%s", fn); + const fn = Feeds.getFeedName(actid); - if (confirm(pr)) { + if (confirm(__("Unsubscribe from %s?").replace("%s", fn))) { CommonDialogs.unsubscribeFeed(actid); } break; -- cgit v1.2.3