Skip to content

Commit

Permalink
- resolved code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcwbr committed Aug 9, 2023
1 parent 6dc895d commit fbe1e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function inject(serviceIdOrTarget: Object | string, propertyKey?: string)

function redefineObject(target: Object, propertyKey: string, serviceId?: string) {
function get() {
return ServiceContainer.get(serviceId?.toLowerCase() || propertyKey.toLowerCase());
return ServiceContainer.get(serviceId?.toLowerCase() ?? propertyKey.toLowerCase());
}

function set() {
Expand Down

0 comments on commit fbe1e12

Please sign in to comment.