From 9bc166221d5947bda78efe80850a762424e7d858 Mon Sep 17 00:00:00 2001 From: Patrick Hulce Date: Wed, 27 Dec 2017 10:19:17 -0600 Subject: [PATCH] Remove artifacts from results before saving --- src/lighthouse-bin.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lighthouse-bin.js b/src/lighthouse-bin.js index 463bcbe..b134dd1 100755 --- a/src/lighthouse-bin.js +++ b/src/lighthouse-bin.js @@ -109,7 +109,9 @@ function lighthouseRun(addresses, config, lighthouseFlags, chrome) { } return lighthouse(address, lighthouseFlags) .then((results) => { - return saveResults(results, results.artifacts, lighthouseFlags); + const artifacts = results.artifacts; + delete results.artifacts; + return saveResults(results, artifacts, lighthouseFlags); }) .then((results) => { return lighthouseRun(addresses, config, lighthouseFlags, chrome);