Remove unnecessary nullish coalescing (#12058)
This commit is contained in:
@@ -331,7 +331,7 @@ export class CustomEmojiService implements OnApplicationShutdown {
|
||||
|
||||
const queryOrNull = async () => (await this.emojisRepository.findOneBy({
|
||||
name,
|
||||
host: host ?? IsNull(),
|
||||
host,
|
||||
})) ?? null;
|
||||
|
||||
const emoji = await this.cache.fetch(`${name} ${host}`, queryOrNull);
|
||||
|
Reference in New Issue
Block a user