-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix:
CreateYaml
does not work the same as CreateTextFile
with pre…
…condition (#4360) * fix: `CreateYaml` does not work with precondition When a precondition is present and matched, an empty file is generated but the content is not added. ``` expected: "content: yes" but was: "" ``` * the fix * fix other test * Update rewrite-yaml/src/test/java/org/openrewrite/yaml/CreateYamlFileTest.java Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update rewrite-yaml/src/test/java/org/openrewrite/yaml/CreateYamlFileTest.java Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * generate empty if null --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
84f5858
commit f28b1d7
Showing
2 changed files
with
76 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters