Skip to content

bug[mat-icon] unreachable code result from possible spell miss #21024

@chigix

Description

@chigix

} else if (svgIconChanges.previousValue) {

Because previousValue is accessible on the SimpleChanges event object rather than the svgIconChanges that is obtained from changes['svgIcon'], the line

} else if (svgIconChanges.previousValue) {
becomes unreachable at present.

Please confirm is it an intended design or just a bug ?

If it is a bug, would it be a necessity to update testing cases in spec files to reflect this corresponding conditional branch ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions