Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Declare variable before using it
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Scandurra committed Feb 28, 2017
1 parent 25a2796 commit 4cecf23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fuzzy-finder-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export default class FuzzyFinderView {

confirm ({filePath}={}, openOptions) {
if (atom.workspace.getActiveTextEditor() && this.isQueryALineJump()) {
lineNumber = this.getLineNumber()
const lineNumber = this.getLineNumber()
this.cancel()
this.moveToLine(lineNumber)
} else if (!filePath) {
Expand All @@ -186,7 +186,7 @@ export default class FuzzyFinderView {
this.selectListView.update({errorMessage: 'Selected path is a directory'})
setTimeout(() => { this.selectListView.update({errorMessage: null}) }, 2000)
} else {
lineNumber = this.getLineNumber()
const lineNumber = this.getLineNumber()
this.cancel()
this.openPath(filePath, lineNumber, openOptions)
}
Expand Down

0 comments on commit 4cecf23

Please sign in to comment.