Skip to content

Housekeeping/remove typeguards#680

Merged
subdavis merged 2 commits intomainfrom
housekeeping/remove-typeguards
Apr 5, 2021
Merged

Housekeeping/remove typeguards#680
subdavis merged 2 commits intomainfrom
housekeeping/remove-typeguards

Conversation

@subdavis
Copy link
Contributor

@subdavis subdavis commented Apr 2, 2021

As discussed in code reflection, remove unnecessary type guards, rely on interfaces.

@subdavis subdavis requested a review from BryonLewis April 2, 2021 13:54
@subdavis subdavis force-pushed the housekeeping/remove-typeguards branch from aa5f999 to 77b1c87 Compare April 2, 2021 13:55
Copy link
Collaborator

@BryonLewis BryonLewis left a comment

Choose a reason for hiding this comment

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

Just updating the error message for markChangesPending when it doesn't find track or attribute.

);
} else {
throw new Error(`Arguments inconsistent with pending change type: ${action} cannot be performed on ${data}`);
throw new Error(`Arguments inconsistent with pending change type: ${action} cannot be performed on ${attribute}`);
Copy link
Collaborator

Choose a reason for hiding this comment

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

attribute will always be undefined here, maybe a slight change to this message.

@subdavis subdavis requested a review from BryonLewis April 2, 2021 19:16
@subdavis subdavis merged commit 9202d4b into main Apr 5, 2021
@subdavis subdavis deleted the housekeeping/remove-typeguards branch April 14, 2021 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants