Skip to content

Commit

Permalink
Remove type assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
VickyStash committed Jan 10, 2025
1 parent 456270b commit af1311a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4595,7 +4595,7 @@ function buildOptimisticTaskCommentReportAction(
taskTitle: string,
taskAssigneeAccountID: number,
text: string,
parentReportID: string,
parentReportID: string | undefined,
actorAccountID?: number,
createdOffset = 0,
): OptimisticReportAction {
Expand Down Expand Up @@ -7514,7 +7514,7 @@ function getTaskAssigneeChatOnyxData(
assigneeAccountID: number,
taskReportID: string,
assigneeChatReportID: string,
parentReportID: string,
parentReportID: string | undefined,
title: string,
assigneeChatReport: OnyxEntry<Report>,
): OnyxDataTaskAssigneeChat {
Expand Down
3 changes: 1 addition & 2 deletions src/libs/actions/Task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -725,8 +725,7 @@ function editTaskAssignee(report: OnyxTypes.Report, sessionAccountID: number, as
assigneeAccountID,
report.reportID,
assigneeChatReportID,
// eslint-disable-next-line @typescript-eslint/non-nullable-type-assertion-style
report.parentReportID as string,
report.parentReportID,
reportName ?? '',
assigneeChatReport,
);
Expand Down

0 comments on commit af1311a

Please sign in to comment.