Skip to content

Commit

Permalink
Fix issue #2631
Browse files Browse the repository at this point in the history
  • Loading branch information
gawsoftpl committed Dec 14, 2023
1 parent d46360d commit 3f2217e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/grpc-reflection/src/implementations/reflection-v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ export class ReflectionV1Implementation {

private getFileDependencies(file: IFileDescriptorProto): IFileDescriptorProto[] {
const visited: Set<IFileDescriptorProto> = new Set();
const toVisit: IFileDescriptorProto[] = this.fileDependencies.get(file) || [];

const toVisit: IFileDescriptorProto[] = [...(this.fileDependencies.get(file) || [])];
while (toVisit.length > 0) {
const current = toVisit.pop();

Expand Down

0 comments on commit 3f2217e

Please sign in to comment.