We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9557df commit 133eef0Copy full SHA for 133eef0
src/util/helpers.ts
@@ -1,5 +1,5 @@
1
export function denyOnErrors(...errors: Array<string[]>) {
2
- const combinedErrors: string[] = [].concat.apply(errors)
+ const combinedErrors: string[] = Array<string>().concat.apply([], errors)
3
if (combinedErrors.length > 0) {
4
deny("Request denied because of the following errors:\n-" + combinedErrors.join("\n-"));
5
}
0 commit comments