Skip to content

Commit

Permalink
chore: ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
favna authored and renovate[bot] committed Jul 14, 2024
1 parent f64391d commit b55bf68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/structures/AnimeCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ export abstract class AnimeCommand<Kind extends 'anime' | 'manga'> 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) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/utilities/discord-utilities.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { APIChannel } from 'discord-api-types/v10';

export function isNsfwChannel(channel: Partial<APIChannel>): boolean {
return 'nsfw' in channel ? channel.nsfw ?? false : false;
return 'nsfw' in channel ? (channel.nsfw ?? false) : false;
}

0 comments on commit b55bf68

Please # to comment.