mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
refactor(microservices): applied comment suggestion
This commit is contained in:
@@ -304,8 +304,8 @@ export class ClientGrpcProxy extends ClientProxy implements ClientGrpc {
|
||||
/** Reference: https://github.com/kondi/rxjs-grpc */
|
||||
let pkg = root;
|
||||
|
||||
if (packageName && packageName.length > 0) {
|
||||
for (const name of packageName.split(/\./)) {
|
||||
if (packageName) {
|
||||
for (const name of packageName.split('.')) {
|
||||
pkg = pkg[name];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user