Skip to content

Commit ca9cfa2

Browse files
Update internal/compiler/program.go
Co-authored-by: Copilot <[email protected]>
1 parent cb8b412 commit ca9cfa2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/compiler/program.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,8 +1070,7 @@ func (p *Program) getSemanticDiagnosticsForFileNotFilter(ctx context.Context, so
10701070
return filtered
10711071
}
10721072

1073-
func (p *Program) getDiagnosticsWithPrecedingDirectives(sourceFile *ast.SourceFile, diags []*ast.Diagnostic) ([]*ast.Diagnostic, map[int]ast.CommentDirective) {
1074-
if len(diags) == 0 || len(sourceFile.CommentDirectives) == 0 {
1073+
if len(sourceFile.CommentDirectives) == 0 {
10751074
return diags, nil
10761075
}
10771076
// Build map of directives by line number

0 commit comments

Comments
 (0)