Skip to content

Commit

Permalink
removed useless check in close
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed Nov 10, 2017
1 parent 414823c commit 4825836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ Boot.prototype.onClose = function (func) {
Boot.prototype.close = function (func) {
this._error = null
if (func) {
if (func && typeof func !== 'function') {
if (typeof func !== 'function') {
throw new Error('not a function')
}
this._closeQ.push(func)
Expand Down

0 comments on commit 4825836

Please sign in to comment.