Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Apr 6, 2021
1 parent 1d49ea9 commit 6706b17
Show file tree
Hide file tree
Showing 2 changed files with 192 additions and 178 deletions.
6 changes: 4 additions & 2 deletions packages/@ember/-internals/container/lib/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,10 @@ function isInstantiatable(container: Container, fullName: string) {
function lookup(container: Container, fullName: string, options: LookupOptions = {}) {
let normalizedName = fullName;

if (options.singleton === true || (options.singleton === undefined && isSingleton(container, fullName))) {
if (
options.singleton === true ||
(options.singleton === undefined && isSingleton(container, fullName))
) {
let cached = container.cache[normalizedName];
if (cached !== undefined) {
return cached;
Expand Down Expand Up @@ -379,7 +382,6 @@ function instantiateFactory(
// SomeClass { singleton: true, instantiate: true } | { singleton: true } | { instantiate: true } | {}
// By default majority of objects fall into this case
if (isSingletonInstance(container, fullName, options)) {

let instance = (container.cache[normalizedName] = factoryManager.create() as CacheMember);

// if this lookup happened _during_ destruction (emits a deprecation, but
Expand Down
Loading

0 comments on commit 6706b17

Please sign in to comment.