Skip to content

Commit

Permalink
refactor(backend): remove unnecessary any
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Oct 14, 2024
1 parent 77ebabb commit f13c390
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/backend/src/core/entities/NoteEntityService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class NoteEntityService implements OnModuleInit {
hide = false;
} else {
// 指定されているかどうか
const specified = packedNote.visibleUserIds!.some((id: any) => meId === id);
const specified = packedNote.visibleUserIds!.some(id => meId === id);

if (specified) {
hide = false;
Expand Down Expand Up @@ -250,7 +250,7 @@ export class NoteEntityService implements OnModuleInit {
return true;
} else {
// 指定されているかどうか
return note.visibleUserIds.some((id: any) => meId === id);
return note.visibleUserIds.some(id => meId === id);
}
}

Expand Down

0 comments on commit f13c390

Please sign in to comment.