Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
fix(remove-comments): change to inner variable to fix infinite loop (#…
Browse files Browse the repository at this point in the history
…109)

Closes #108

Signed-off-by: Dustin Scott <[email protected]>
  • Loading branch information
scottd018 committed Jul 9, 2021
1 parent e1862e9 commit 9d67707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/instructions/yamlfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,6 @@ func removeCommentsFromNode(node *yaml.Node) {
child.LineComment = ""
child.FootComment = ""

removeCommentsFromNode(node)
removeCommentsFromNode(child)
}
}

0 comments on commit 9d67707

Please sign in to comment.