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

Handle null/empty type paths in build url mixin #2946

Merged
merged 1 commit into from
Apr 1, 2015

Conversation

vinilios
Copy link
Contributor

handle empty values returned by pathForType in buildURL method of
the build url mixin.

refs #2844


if (type) { url.push(this.pathForType(type)); }
if (type && (path = this.pathForType(type))) {
Copy link
Member

Choose a reason for hiding this comment

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

Can you take the assignment out of the if statement? I don't think it's needed there.

@igorT
Copy link
Member

igorT commented Mar 27, 2015

Thanks for the PR!

handle empty values returned by pathForType in buildURL method of
the build url mixin.

refs emberjs#2844
@vinilios
Copy link
Contributor Author

PR updated @igorT

igorT added a commit that referenced this pull request Apr 1, 2015
Handle null/empty type paths in build url mixin
@igorT igorT merged commit 1be7a77 into emberjs:master Apr 1, 2015
@igorT
Copy link
Member

igorT commented Apr 1, 2015

Thanks!

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