We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2370f3f commit df30f6eCopy full SHA for df30f6e
1 file changed
index.js
@@ -51,7 +51,7 @@ const requestHandlers = {
51
if (!reports[r.query.report]) return Boom.badRequest('invalid report (100)')
52
53
const missingParams = reports[r.query.report].params.filter(e => !r.query[e])
54
- if ( typeof missingParams !== 'undefined' ) {
+ if ( missingParams.length ) {
55
return Boom.badRequest(`missing required parameters: ${missingParams.join()}` + ' (101)')
56
}
57
0 commit comments