YoruNoHikage / apex-api-gateway

Create and deploy your Apex project on AWS API Gateway using Swagger configuration
MIT License
19 stars 4 forks source link

[Proposal] Compact array after readdirsync #8

Closed wenderjean closed 7 years ago

wenderjean commented 7 years ago

Related to #5

When trying to invoke update function the error below was showed to me:

Cannot match against 'undefined' or 'null'.

The problem was happening on destructuring present in line 87, after debugging I found out that the array of functions had an undefined item because inside the function's I had a .DS_Store file.

[undefined, { ... }, { ... }]

My proposal is to filter results right away after readdsync map instruction.

YoruNoHikage commented 7 years ago

Thanks, quick and tiny solution!