Skip to content

Commit 7bae9bc

Browse files
committed
refactor: merge statements
1 parent 571fe00 commit 7bae9bc

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎packages/launch-editor/index.js‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ function parseFile(file) {
6262
let currentChildProcess = null
6363

6464
function launchEditor(file, specifiedEditor, onErrorCallback) {
65-
const parsed = parseFile(file)
66-
let { fileName } = parsed
67-
const { lineNumber, columnNumber } = parsed
65+
const { fileName, lineNumber, columnNumber } = parseFile(file)
6866

6967
if (process.platform === 'win32' && path.resolve(fileName).startsWith('\\\\')) {
7068
return onErrorCallback(

0 commit comments

Comments
 (0)