Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
deebloo committed Jan 29, 2025
1 parent 4855ca0 commit c36f793
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/di/src/lib/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,7 @@ export function readMetadata<T>(

export function readInjector<T extends object>(target: T): Injector | null {
if (INJECTOR in target) {
const injector = target[INJECTOR];

if (injector) {
return injector as Injector;
}

return null;
return target[INJECTOR] as Injector;
}

return null;
Expand Down

0 comments on commit c36f793

Please sign in to comment.