Skip to content

Commit

Permalink
make comparison more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
jonschlinkert committed Oct 19, 2017
1 parent aa0dbde commit bea1151
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

/**
/*!
* This is almost entirely based on:
* https://www.npmjs.com/package/inquirer-autocomplete-prompt
* Copyright (c) 2015, Martin Hansen <[email protected]>
Expand All @@ -20,7 +20,7 @@ var utils = require('readline-utils');

function Prompt() {
BasePrompt.apply(this, arguments);
if (!this.question.source) {
if (typeof this.question.source !== 'function') {
throw new TypeError('expected source to be defined');
}

Expand Down

0 comments on commit bea1151

Please sign in to comment.