Remove unnecessary nullish coalescing (#12058)

This commit is contained in:
woxtu
2023-10-18 09:54:18 +09:00
committed by GitHub
parent 53099cad5a
commit 0bddd0ceae
12 changed files with 19 additions and 20 deletions

View File

@@ -83,7 +83,7 @@ export class FeedService {
date: this.idService.parse(note.id).date,
description: note.cw ?? undefined,
content: note.text ?? undefined,
image: file ? this.driveFileEntityService.getPublicUrl(file) ?? undefined : undefined,
image: file ? this.driveFileEntityService.getPublicUrl(file) : undefined,
});
}