Skip to content

Commit

Permalink
🐛 Fix invalid validateEditor function
Browse files Browse the repository at this point in the history
  • Loading branch information
steelbrain committed Feb 11, 2016
1 parent 0fa4543 commit 465c50a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function validateEditor(editor: TextEditor) {
// Added in Atom v1.4.0
isEditor = atom.workspace.isTextEditor(editor)
} else {
isEditor = typeof editor.getText !== 'function'
isEditor = typeof editor.getText === 'function'
}
if (!isEditor) {
throw new Error('Invalid TextEditor provided')
Expand Down

1 comment on commit 465c50a

@Arcanemagus
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please sign in to comment.