Skip to content

Commit

Permalink
style(core): fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
micalevisk committed Sep 7, 2024
1 parent 7840835 commit 409e718
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export class DiscoverableMetaHostCollection {
// But since calling `wrapper.instance` could degrade overall performance
// we must defer it as much we can.
instanceWrapper.metatype || instanceWrapper.inject
? instanceWrapper.instance?.constructor ?? instanceWrapper.metatype
? (instanceWrapper.instance?.constructor ?? instanceWrapper.metatype)
: instanceWrapper.metatype,
);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/injector/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ export class NestContainer {
metadataKey?: Exclude<keyof DynamicModule, 'global' | 'module'>,
) {
const metadata = this.dynamicModulesMetadata.get(token);
return metadataKey ? metadata?.[metadataKey] ?? [] : metadata;
return metadataKey ? (metadata?.[metadataKey] ?? []) : metadata;
}

public registerCoreModuleRef(moduleRef: Module) {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/inspector/serialized-graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export class SerializedGraph {
if (typeof value === 'symbol') {
return value.toString();
}
return typeof value === 'function' ? value.name ?? 'Function' : value;
return typeof value === 'function' ? (value.name ?? 'Function') : value;
};
return JSON.stringify(this.toJSON(), replacer, 2);
}
Expand Down

0 comments on commit 409e718

Please sign in to comment.