Skip to content

Commit

Permalink
update as per flynn's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Joffray authored and nucleardreamer committed Sep 13, 2018
1 parent 13cab44 commit 7c335b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class Core extends EventEmitter2 {
if (!this.ready) {
throw new Error("Oak isn't ready yet, wait your turn!")
}
if (_.isNull(opts.url)) {
if (!_.isString(opts.url) || !_.isFunction(opts.url) {
throw new Error('Oak requires an options url!')
}

Expand Down

0 comments on commit 7c335b9

Please sign in to comment.