diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-17 09:00:41 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-17 09:00:41 +0900 |
commit | cd4708898134f5966f87df4aeaa8ed8c60e7943f (patch) | |
tree | db082d9cb2ec426010556dbc24ab439c9757afbd /src/actions/operation.js | |
parent | c5529958d53146c8c6826673abe6431a19f1924d (diff) | |
parent | 9ae814dfe45426f8df9b89b305392770344a7d50 (diff) |
Merge branch 'lint'
Diffstat (limited to 'src/actions/operation.js')
-rw-r--r-- | src/actions/operation.js | 10 |
1 files changed, 5 insertions, 5 deletions
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 }; |