Skip to content

Commit b549bc6

Browse files
committed
fix(index): behaviour when config loading fails
closes #26
1 parent 5e7e307 commit b549bc6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ module.exports = function postcssrc (ctx, path, options) {
4646
)
4747
}
4848

49-
result === undefined ? { config: {} } : result
50-
result = result.config
49+
result = result ? result.config : {}
5150

5251
return result
5352
})

0 commit comments

Comments
 (0)