From b55bf681423c20e0b57697ddb2888b27db5b35a3 Mon Sep 17 00:00:00 2001 From: Jeroen Claassens Date: Sun, 14 Jul 2024 11:08:52 +0200 Subject: [PATCH] chore: ci test --- src/lib/structures/AnimeCommand.ts | 4 ++-- src/lib/utilities/discord-utilities.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/structures/AnimeCommand.ts b/src/lib/structures/AnimeCommand.ts index 19f0f5c0..ee814e24 100644 --- a/src/lib/structures/AnimeCommand.ts +++ b/src/lib/structures/AnimeCommand.ts @@ -125,8 +125,8 @@ export abstract class AnimeCommand extends Comma private getTitle(title: MediaTitle, locale: LocaleString, origin: string | null | undefined) { return this.shouldUseNative(locale, origin ?? 'JP') - ? title.native ?? title.english ?? title.romaji! - : title.english ?? title.romaji ?? title.native!; + ? (title.native ?? title.english ?? title.romaji!) + : (title.english ?? title.romaji ?? title.native!); } private shouldUseNative(locale: LocaleString, origin: string) { diff --git a/src/lib/utilities/discord-utilities.ts b/src/lib/utilities/discord-utilities.ts index 6c0347cd..9e1a896f 100644 --- a/src/lib/utilities/discord-utilities.ts +++ b/src/lib/utilities/discord-utilities.ts @@ -1,5 +1,5 @@ import type { APIChannel } from 'discord-api-types/v10'; export function isNsfwChannel(channel: Partial): boolean { - return 'nsfw' in channel ? channel.nsfw ?? false : false; + return 'nsfw' in channel ? (channel.nsfw ?? false) : false; }