Skip to content

Commit 31dd647

Browse files
committed
fix: use type check instead of nullish coalescing operator
1 parent c92b2a2 commit 31dd647

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const isUrl = require('is-url-superb')
33
const matchHelper = require('posthtml-match-helper')
44

55
module.exports = (config = {}) => tree => {
6-
config.strict = config.strict ?? true
6+
config.strict = typeof config.strict === 'boolean' ? config.strict : true
77

88
const process = node => {
99
if (!config || !config.parameters) {

0 commit comments

Comments
 (0)