Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Commit

Permalink
Add default to navigate and clean up logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryant Ung committed Jan 26, 2018
1 parent 960163e commit 973e003
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/go-to-line-view.js
Expand Up @@ -52,10 +52,10 @@ class GoToLineView {
}
}

navigate (options) {
navigate (options = {}) {
const lineNumber = this.miniEditor.getText()
const editor = atom.workspace.getActiveTextEditor()
if (options == null || options.keepOpen == null) {
if (!options.keepOpen) {
this.close()
}
if (!editor || !lineNumber.length) return
Expand Down

0 comments on commit 973e003

Please sign in to comment.