mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-10 01:24:08 +02:00
Apply code review suggestions - use explicit null checks
Co-authored-by: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com>
This commit is contained in:
@@ -109,7 +109,7 @@ export class NotificationService implements OnApplicationShutdown {
|
||||
|
||||
const mutings = await this.cacheService.userMutingsCache.fetch(notifieeId);
|
||||
const muting = mutings.get(notifierId);
|
||||
if (muting && muting.mutingType === 'all') {
|
||||
if (muting != null && muting.mutingType === 'all') {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user