Skip to content

Commit

Permalink
fix: store concatenated array to problems variable (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric authored and marionebl committed Jan 27, 2019
1 parent b636e8c commit 434a70f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions @packages/utils/pkg-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => ({
Expand Down

0 comments on commit 434a70f

Please sign in to comment.