From e133f8d2b3d104568959759e8ec7cf907257eb1b Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sat, 26 Mar 2016 12:02:55 +0000 Subject: Simplify expression. --- background_scripts/commands.coffee | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'background_scripts') diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee index 209b5ea3..2d901b15 100644 --- a/background_scripts/commands.coffee +++ b/background_scripts/commands.coffee @@ -357,9 +357,7 @@ commandDescriptions = createTab: ["Create new tab", { background: true, repeatLimit: 20 }] duplicateTab: ["Duplicate current tab", { background: true, repeatLimit: 20 }] - removeTab: ["Close current tab", { background: true, repeatLimit: - # Require confirmation to remove more tabs than we can restore. - (if chrome.session then chrome.session.MAX_SESSION_RESULTS else 25) }] + removeTab: ["Close current tab", { background: true, repeatLimit: chrome.session?.MAX_SESSION_RESULTS ? 25 }] restoreTab: ["Restore closed tab", { background: true, repeatLimit: 20 }] moveTabToNewWindow: ["Move tab to new window", { background: true }] -- cgit v1.2.3