From 4a76c90aacc1bbe1b0bdaf29ea8b24d1b7a57797 Mon Sep 17 00:00:00 2001 From: Gustaf Dalemar Date: Mon, 22 Jan 2018 19:00:25 +0100 Subject: [PATCH] fix(roc-plugin-repo): Handle that a project can be empty when linting --- extensions/roc-plugin-repo/src/actions/lint.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/roc-plugin-repo/src/actions/lint.js b/extensions/roc-plugin-repo/src/actions/lint.js index 61cde26..823c2c3 100644 --- a/extensions/roc-plugin-repo/src/actions/lint.js +++ b/extensions/roc-plugin-repo/src/actions/lint.js @@ -113,7 +113,7 @@ export default ( ...checkstyleXML.checkstyle, file: [ ...newXML.checkstyle.file, - ...checkstyleXML.checkstyle.file, + ...(checkstyleXML.checkstyle.file || []), ], }, };