From b549bc6a6153b733e827ea36d128da9575ec486b Mon Sep 17 00:00:00 2001 From: Patrick Gilday Date: Tue, 18 Oct 2016 16:49:36 -0400 Subject: [PATCH] fix(index): behaviour when config loading fails closes #26 --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 2a53d09..5c24bad 100644 --- a/index.js +++ b/index.js @@ -46,8 +46,7 @@ module.exports = function postcssrc (ctx, path, options) { ) } - result === undefined ? { config: {} } : result - result = result.config + result = result ? result.config : {} return result })