Skip to content

Commit 133eef0

Browse files
committed
Fix errors array concatenation
1 parent c9557df commit 133eef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export function denyOnErrors(...errors: Array<string[]>) {
2-
const combinedErrors: string[] = [].concat.apply(errors)
2+
const combinedErrors: string[] = Array<string>().concat.apply([], errors)
33
if (combinedErrors.length > 0) {
44
deny("Request denied because of the following errors:\n-" + combinedErrors.join("\n-"));
55
}

0 commit comments

Comments
 (0)