Skip to content

Commit 6362d4c

Browse files
committed
minor cleanup to downloadOcaml
1 parent a46cd22 commit 6362d4c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

_automation/main.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -374,16 +374,10 @@ func (s *UpdateService) downloadOcaml(ctx context.Context, g *Grammar) {
374374
"scanner.c": "grammars/ocaml/src/scanner.c",
375375
"scanner.h": "include/scanner.h",
376376
"alloc.h": "include/tree_sitter/alloc.h",
377+
"parser.h": "include/tree_sitter/parser.h",
377378
}
378379

379380
url := g.ContentURL()
380-
s.downloadFile(
381-
ctx,
382-
fmt.Sprintf("%s/%s/include/tree_sitter/parser.h", url, g.Revision),
383-
fmt.Sprintf("%s/parser.h", g.Language),
384-
nil,
385-
)
386-
387381
for _, f := range g.Files {
388382
fp, ok := fileMapping[f]
389383
if !ok {

0 commit comments

Comments
 (0)