Skip to content

deduplicate redundant defaulting #368

@philipmulcahy

Description

@philipmulcahy

In order_details.ts there are several instances where a call to extraction.y_regex is wrapped with a call to util.defaulted

return util.defaulted(
   extraction.by_regex(
       ...,

Given that by_regex has a default parameter, this seems redundant.

Proposal: remove the defaulted wrapper, copying the outer default value to the by_regex call, replacing the existing inner default parameter if it differs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions