organize imports
This commit is contained in:
parent
fc5a30c005
commit
2702ba4d79
1 changed files with 3 additions and 2 deletions
|
|
@ -1,7 +1,8 @@
|
||||||
path = require 'path'
|
path = require 'path'
|
||||||
CommandError = require './command-error'
|
|
||||||
fs = require 'fs-plus'
|
fs = require 'fs-plus'
|
||||||
|
|
||||||
|
CommandError = require './command-error'
|
||||||
|
|
||||||
trySave = (func) ->
|
trySave = (func) ->
|
||||||
deferred = Promise.defer()
|
deferred = Promise.defer()
|
||||||
|
|
||||||
|
|
@ -103,7 +104,7 @@ class Ex
|
||||||
if filePath.indexOf(' ') isnt -1
|
if filePath.indexOf(' ') isnt -1
|
||||||
throw new CommandError('Only one file name allowed')
|
throw new CommandError('Only one file name allowed')
|
||||||
|
|
||||||
filePath = fs.normalize filePath
|
filePath = getFullPath filePath
|
||||||
atom.workspace.open(filePath)
|
atom.workspace.open(filePath)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue