From bc3f56f55f747d19b5ba1c135edfe3e757605514 Mon Sep 17 00:00:00 2001 From: Tejesh Mehta Date: Thu, 23 Mar 2017 16:44:42 -0400 Subject: [PATCH] fix checkStyleSettings when path not found checkStyleSettings should never return undefined --- lib/utils/style-settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/style-settings.js b/lib/utils/style-settings.js index 5881623..b14971b 100644 --- a/lib/utils/style-settings.js +++ b/lib/utils/style-settings.js @@ -39,7 +39,7 @@ function checkStyleSettings (filePath) { projectPath = projectPaths.find((p) => absoluteActivePanePath.indexOf(fs.realpathSync(p)) >= 0) } catch (e) { console.error('Could not get project path', e) - return + return {} } var relativeFilePath = false