From 9ae814dfe45426f8df9b89b305392770344a7d50 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 17 Sep 2017 08:59:12 +0900 Subject: more strict lint --- src/actions/operation.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/actions/operation.js') diff --git a/src/actions/operation.js b/src/actions/operation.js index e589b89..b0d67f0 100644 --- a/src/actions/operation.js +++ b/src/actions/operation.js @@ -1,10 +1,10 @@ import operations from '../operations'; -import messages from '../messages'; +import messages from '../messages'; import * as consoleActions from './console'; import * as tabs from '../background/tabs'; import * as zooms from '../background/zooms'; -export function exec(operation, tab) { +const exec = (operation, tab) => { switch (operation.type) { case operations.TABS_CLOSE: return tabs.closeTab(tab.id); @@ -28,9 +28,8 @@ export function exec(operation, tab) { if (operations.alter) { // alter url return consoleActions.showCommand('open ' + tab.url); - } else { - return consoleActions.showCommand('open '); } + return consoleActions.showCommand('open '); case operations.COMMAND_BUFFER: return consoleActions.showCommand('buffer '); default: @@ -39,5 +38,6 @@ export function exec(operation, tab) { operation }); } -} +}; +export { exec }; -- cgit v1.2.3