Skip to content

Commit 6e12d20

Browse files
ljharbisaacs
authored andcommitted
[Refactor] use more explicit assert.ok
PR-URL: #451 Credit: @ljharb Close: #451 Reviewed-by: @nicolas377
1 parent 5e27b39 commit 6e12d20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sync.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function GlobSync (pattern, options) {
4848
}
4949

5050
GlobSync.prototype._finish = function () {
51-
assert(this instanceof GlobSync)
51+
assert.ok(this instanceof GlobSync)
5252
if (this.realpath) {
5353
var self = this
5454
this.matches.forEach(function (matchset, index) {
@@ -72,7 +72,7 @@ GlobSync.prototype._finish = function () {
7272

7373

7474
GlobSync.prototype._process = function (pattern, index, inGlobStar) {
75-
assert(this instanceof GlobSync)
75+
assert.ok(this instanceof GlobSync)
7676

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

0 commit comments

Comments
 (0)