Skip to content

Commit

Permalink
Fix errors array concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
mdnfiras committed Mar 19, 2022
1 parent c9557df commit fddb4ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export function denyOnErrors(...errors: Array<string[]>) {
const combinedErrors: string[] = [].concat.apply(errors)
const combinedErrors: Array<string> = Array<string>().concat.apply(Array<string>(), errors)
if (combinedErrors.length > 0) {
deny("Request denied because of the following errors:\n-" + combinedErrors.join("\n-"));
}
Expand Down

0 comments on commit fddb4ef

Please sign in to comment.