From ff7698e98d7a8f88fb29088cfe5be79df14116f4 Mon Sep 17 00:00:00 2001 From: Cedric van Putten Date: Sun, 27 Jan 2019 20:35:30 +0100 Subject: [PATCH] fix(utils): store concatenated array to problems variable --- @packages/utils/pkg-check.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/@packages/utils/pkg-check.js b/@packages/utils/pkg-check.js index ce5c07e172..d1ca18f683 100755 --- a/@packages/utils/pkg-check.js +++ b/@packages/utils/pkg-check.js @@ -46,10 +46,10 @@ function main(cli) { return readPkg(cwd).then(pkg => { return getTarballFiles(cwd, {write: !skipImport}).then(tarball => { return getPackageFiles(cwd).then(pkgFiles => { - const problems = []; + let problems = []; if (!cli.flags.skipBin) { - problems.concat( + problems = problems.concat( pkgFiles.bin .filter(binFile => tarball.files.indexOf(binFile) === -1) .map(binFile => ({