Skip to content

Commit

Permalink
Merge pull request #13952 from micalevisk/style/fix-formatting
Browse files Browse the repository at this point in the history
style(core): fix formatting
  • Loading branch information
kamilmysliwiec authored Sep 17, 2024
2 parents bf629e6 + 409e718 commit 1c8e510
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 1c8e510

Please sign in to comment.