chore(crying): appeasing the linter

This commit is contained in:
zima 2025-07-02 14:15:27 -07:00
parent 0a90fc0941
commit 03d2ec78ae

View file

@ -85,7 +85,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
| { 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
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 'SAME_NAME_EMOJI_EXISTS': throw new ApiError(meta.errors.sameNameEmojiExists);
}
// 網羅性チェック
const mustBeNever: never = error;
});
}
}