Skip to content

Commit

Permalink
fix: better default for userconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Feb 14, 2020
1 parent 6bc1071 commit 4a7f21d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ exports.getUserConfig = () => {
let conf = {}
try {
const path = exports.getUserConfigPath()
if (!path) return null
if (!path) {
return {}
}
conf = require(path)
} catch (err) {
console.error(err) // eslint-disable-line no-console
Expand Down

0 comments on commit 4a7f21d

Please sign in to comment.