Skip to content

Commit e60f416

Browse files
committed
Simplify
1 parent 824bf1a commit e60f416

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spec/helper.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,7 @@ global.it_id = (id, func) => {
448448
if (testExclusionList.includes(id)) {
449449
return xit;
450450
} else {
451-
if (func === undefined) return it;
452-
else return func;
451+
return func || it;
453452
}
454453
};
455454

0 commit comments

Comments
 (0)