Skip to content

Commit

Permalink
Remove System.out from YamlWriterTest
Browse files Browse the repository at this point in the history
  • Loading branch information
A248 committed Mar 9, 2021
1 parent 0fc4b74 commit d2d005e
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,9 @@ private String listIndent() {
}

private String quoteValue(String value) {
if (writer instanceof CommentedWriter) {
value = "'" + value + "'";
}
return value;
return (writer instanceof CommentedWriter) ? ("'" + value + "'") : value;
}


/**
* Provides leniency in case there is an extra new line in {@code actualLines}
*
Expand Down Expand Up @@ -207,7 +203,7 @@ public void writeCommentHeader(YamlWriter.Factory writerFactory) throws IOExcept
"# Header 2",
"# Comment on entry",
"key: " + quoteValue("value")),
resultString.lines().peek(System.out::println));
resultString.lines());
}

private static void assertConfigMapsEqual(Map<String, Object> map1, Map<String, Object> map2) {
Expand Down

0 comments on commit d2d005e

Please sign in to comment.