Skip to content

Commit

Permalink
Merge pull request #16793 from bekzod/cleanup-lookup-partial
Browse files Browse the repository at this point in the history
cleanup `_lookupPartial`
  • Loading branch information
stefanpenner authored Jul 12, 2018
2 parents ccd7cd6 + 531be15 commit 6ecd806
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/ember-glimmer/lib/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,21 +262,16 @@ export default class RuntimeResolver implements IRuntimeResolver<OwnedTemplateMe

private _lookupPartial(name: string, meta: OwnedTemplateMeta): PartialDefinition {
const template = lookupPartial(name, meta.owner);
const partial = new PartialDefinition(name, lookupPartial(name, meta.owner));

if (template) {
return partial;
return new PartialDefinition(name, template);
} else {
throw new Error(`${name} is not a partial`);
}
}

private _lookupModifier(name: string) {
let modifier = this.builtInModifiers[name];
if (modifier !== undefined) {
return modifier;
}
return null;
return this.builtInModifiers[name];
}

private _parseNameForNamespace(_name: string) {
Expand Down

0 comments on commit 6ecd806

Please sign in to comment.