summaryrefslogtreecommitdiff
path: root/scripts/frontend/frontend_script_utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/frontend/frontend_script_utils.js')
-rw-r--r--scripts/frontend/frontend_script_utils.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/frontend/frontend_script_utils.js b/scripts/frontend/frontend_script_utils.js
index e42b912d359..e3d357b4a40 100644
--- a/scripts/frontend/frontend_script_utils.js
+++ b/scripts/frontend/frontend_script_utils.js
@@ -13,7 +13,8 @@ const execGitCmd = args =>
exec('git', args)
.trim()
.toString()
- .split('\n');
+ .split('\n')
+ .filter(Boolean);
module.exports = {
getStagedFiles: fileExtensionFilter => {