Skip to content

Commit

Permalink
Improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tgolen committed Feb 28, 2024
1 parent 9870988 commit b47c44a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libs/actions/Task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -721,10 +721,9 @@ function getShareDestination(reportID: string, reports: OnyxCollection<OnyxTypes

/**
* Returns the parentReportAction if the given report is a thread/task.
*
* @deprecated Use Onyx.connect() or withOnyx() instead
*/
function getParentReportAction(report: OnyxEntry<OnyxTypes.Report>): ReportAction | Record<string, never> {
// If the report is not a thread report, then it won't have a parent and an empty object can be returned.
if (!report?.parentReportID || !report.parentReportActionID) {
return {};
}
Expand Down

0 comments on commit b47c44a

Please sign in to comment.