Remove unnecessary nullish coalescing (#12058)
This commit is contained in:
parent
53099cad5a
commit
0bddd0ceae
12 changed files with 19 additions and 20 deletions
|
@ -318,7 +318,7 @@ export class NoteEntityService implements OnModuleInit {
|
|||
text: text,
|
||||
cw: note.cw,
|
||||
visibility: note.visibility,
|
||||
localOnly: note.localOnly ?? undefined,
|
||||
localOnly: note.localOnly,
|
||||
reactionAcceptance: note.reactionAcceptance,
|
||||
visibleUserIds: note.visibility === 'specified' ? note.visibleUserIds : undefined,
|
||||
renoteCount: note.renoteCount,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue