Skip to content

Commit

Permalink
Fix behaviour when config loading fails
Browse files Browse the repository at this point in the history
closes #26
  • Loading branch information
pcgilday committed Oct 18, 2016
1 parent 5e7e307 commit 1ebe246
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ module.exports = function postcssrc (ctx, path, options) {
)
}

result === undefined ? { config: {} } : result
result = result.config
result = result ? result.config : {}

return result
})
Expand Down

0 comments on commit 1ebe246

Please sign in to comment.