Conform more of the codebase to strictNullChecks
(#10731)
This commit is contained in:
parent
9f8113eabd
commit
1281c0746b
40 changed files with 147 additions and 119 deletions
|
@ -280,8 +280,7 @@ function uint8ToString(buf: Uint8Array): string {
|
|||
}
|
||||
|
||||
export async function submitFeedback(
|
||||
endpoint: string,
|
||||
label: string,
|
||||
label: string | undefined,
|
||||
comment: string,
|
||||
canContact = false,
|
||||
extraData: Record<string, any> = {},
|
||||
|
@ -292,7 +291,7 @@ export async function submitFeedback(
|
|||
} catch (err) {} // PlatformPeg already logs this.
|
||||
|
||||
const body = new FormData();
|
||||
body.append("label", label);
|
||||
if (label) body.append("label", label);
|
||||
body.append("text", comment);
|
||||
body.append("can_contact", canContact ? "yes" : "no");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue