mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-22 03:15:12 +00:00
refactor(misskey-js): warnを除去 (#14520)
This commit is contained in:
parent
567acea2a3
commit
0d0cd738f8
1 changed files with 3 additions and 1 deletions
|
@ -67,10 +67,12 @@ export class APIClient {
|
|||
): Promise<SwitchCaseResponseType<E, P>> {
|
||||
return new Promise((resolve, reject) => {
|
||||
let mediaType = 'application/json';
|
||||
// (autogenがバグったときのため、念の為nullチェックも行う)
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||
if (this.assertSpecialEpReqType(endpoint) && endpointReqTypes[endpoint] != null) {
|
||||
mediaType = endpointReqTypes[endpoint];
|
||||
}
|
||||
|
||||
|
||||
let payload: FormData | string = '{}';
|
||||
|
||||
if (mediaType === 'application/json') {
|
||||
|
|
Loading…
Reference in a new issue