Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/libs/ReportActionsUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function hasCommentThread(reportAction) {
* @param {Object} [allReportActionsParam]
* @returns {Object}
*/
function getParentReportAction(report, allReportActionsParam = {}) {
function getParentReportAction(report, allReportActionsParam) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This param is optional, so it'd be better to do allReportActionsParam = undefined, like we do in a few other places, e.g.

function getStringInput(name, options, defaultValue = undefined) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh good point

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about that, but then I thought it would be equivalent, is it not?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is, it's just more explicit.

if (!report || !report.parentReportID || !report.parentReportActionID) {
return {};
}
Expand Down