refactor(microservices): applied comment suggestion

This commit is contained in:
Nazarii Romankiv
2021-10-12 23:09:17 +03:00
parent 1c91bd6642
commit 81e1e21289

View File

@@ -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];
}
}