Skip to content

Commit dfde2fd

Browse files
committed
file is null causing fail, if null skipping file, on review as well
1 parent 12de0e8 commit dfde2fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/review/main.go

+4
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ func run(ctx context.Context) error {
6161
continue
6262
}
6363

64+
if file.Patch == nil {
65+
continue
66+
}
67+
6468
prompt := fmt.Sprintf(oAIClient.PromptReview, *file.Patch)
6569

6670
if len(prompt) > 4096 {

0 commit comments

Comments
 (0)