Skip to content

Commit

Permalink
Polish YamlVisitor
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Sep 12, 2024
1 parent c2295c0 commit 5d06494
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions openrewrite/src/yaml/visitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ export class YamlVisitor<P> extends TreeVisitor<Yaml, P> {
return sourceFile instanceof Yaml;
}

public visitYaml(yaml: Yaml, p: P): Yaml | null {
return yaml;
}

public visitDocuments(documents: Yaml.Documents, p: P): Yaml | null {
documents = documents.withMarkers(this.visitMarkers(documents.markers, p));
documents = documents.withDocuments(ListUtils.map(documents.documents, el => this.visit(el, p) as Yaml.Document));
Expand Down

0 comments on commit 5d06494

Please sign in to comment.