Skip to content

Commit 02d7cb2

Browse files
committed
fix returning pointer to local in getReferencedBuildFiles
1 parent 0dca1d2 commit 02d7cb2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/DocumentStore.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ pub const Handle = struct {
405405
switch (self.impl.associated_build_file) {
406406
.none => return &.{},
407407
.unresolved => |unresolved| return unresolved.potential_build_files, // some of these could be removed because of `has_been_checked`
408-
.resolved => |build_file| return &.{build_file},
408+
.resolved => |*build_file| return build_file[0..1],
409409
}
410410
}
411411

0 commit comments

Comments
 (0)