mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-08-20 10:03:38 +00:00
chore(crying): appeasing the linter
This commit is contained in:
parent
0a90fc0941
commit
03d2ec78ae
1 changed files with 1 additions and 3 deletions
|
@ -85,7 +85,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
| { id: MiEmoji['id']; name?: string }
|
| { id: MiEmoji['id']; name?: string }
|
||||||
| { id?: MiEmoji['id']; name: string };
|
| { id?: MiEmoji['id']; name: string };
|
||||||
|
|
||||||
let categoryNfc: string|null|undefined = ps.category?.normalize('NFC');
|
let categoryNfc: string | null | undefined = ps.category?.normalize('NFC');
|
||||||
// stop ?. from turning a null into an undefined
|
// stop ?. from turning a null into an undefined
|
||||||
if (ps.category === null) categoryNfc = null;
|
if (ps.category === null) categoryNfc = null;
|
||||||
|
|
||||||
|
@ -108,8 +108,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
case 'NO_SUCH_EMOJI': throw new ApiError(meta.errors.noSuchEmoji);
|
case 'NO_SUCH_EMOJI': throw new ApiError(meta.errors.noSuchEmoji);
|
||||||
case 'SAME_NAME_EMOJI_EXISTS': throw new ApiError(meta.errors.sameNameEmojiExists);
|
case 'SAME_NAME_EMOJI_EXISTS': throw new ApiError(meta.errors.sameNameEmojiExists);
|
||||||
}
|
}
|
||||||
// 網羅性チェック
|
|
||||||
const mustBeNever: never = error;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue