Skip to content

Commit 434a70f

Browse files
byCedricmarionebl
authored andcommitted
fix: store concatenated array to problems variable (#551)
1 parent b636e8c commit 434a70f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

@packages/utils/pkg-check.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ function main(cli) {
4646
return readPkg(cwd).then(pkg => {
4747
return getTarballFiles(cwd, {write: !skipImport}).then(tarball => {
4848
return getPackageFiles(cwd).then(pkgFiles => {
49-
const problems = [];
49+
let problems = [];
5050

5151
if (!cli.flags.skipBin) {
52-
problems.concat(
52+
problems = problems.concat(
5353
pkgFiles.bin
5454
.filter(binFile => tarball.files.indexOf(binFile) === -1)
5555
.map(binFile => ({

0 commit comments

Comments
 (0)