Skip to content

Commit

Permalink
header minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Carleslc committed Aug 1, 2022
1 parent 470eee9 commit 0ebd6ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected void trackBlockCommentExplicit(final KeyTree.Node node) {
}

public static String removeHeader(String blockComment, final YamlConfigurationOptions options) {
String header = options.headerFormatter().dump(options.header());
final String header = options.headerFormatter().dump(options.header());
if (header != null && !header.isEmpty()) {
boolean headerWithBlankLine = header.endsWith("\n\n");
if (headerWithBlankLine) {
Expand Down

0 comments on commit 0ebd6ef

Please sign in to comment.