Skip to content

Commit

Permalink
[Refactor] use more explicit assert.ok
Browse files Browse the repository at this point in the history
PR-URL: #451
Credit: @ljharb
Close: #451
Reviewed-by: @nicolas377
  • Loading branch information
ljharb authored and isaacs committed May 13, 2022
1 parent d13cb06 commit fc717ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function GlobSync (pattern, options) {
}

GlobSync.prototype._finish = function () {
assert(this instanceof GlobSync)
assert.ok(this instanceof GlobSync)
if (this.realpath) {
var self = this
this.matches.forEach(function (matchset, index) {
Expand All @@ -72,7 +72,7 @@ GlobSync.prototype._finish = function () {


GlobSync.prototype._process = function (pattern, index, inGlobStar) {
assert(this instanceof GlobSync)
assert.ok(this instanceof GlobSync)

// Get the first [n] parts of pattern that are all strings.
var n = 0
Expand Down

0 comments on commit fc717ba

Please sign in to comment.