Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup _lookupPartial #16793

Merged
merged 1 commit into from
Jul 12, 2018
Merged

Conversation

bekzod
Copy link
Contributor

@bekzod bekzod commented Jul 5, 2018

No description provided.

} else {
throw new Error(`${name} is not a partial`);
}
}

private _lookupModifier(name: string) {
let modifier = this.builtInModifiers[name];
if (modifier !== undefined) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

there is already undefined check downstream in handle method, so this looks unnecessary

this.name = name;
this.namespace = undefined;
} else {
if (namespaceDelimiterOffset !== -1) {
Copy link
Member

Choose a reason for hiding this comment

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

This seems unrelated to the other changes in the PR to me, can you split it out into a separate PR?

@bekzod
Copy link
Contributor Author

bekzod commented Jul 10, 2018

done

@stefanpenner stefanpenner merged commit 6ecd806 into emberjs:master Jul 12, 2018
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.

4 participants