Skip to content

Commit

Permalink
Fix defaults for changelog formats
Browse files Browse the repository at this point in the history
The non-null booleans would always override set the values set by
templates or manually.
  • Loading branch information
koraktor committed Feb 12, 2019
1 parent 657cf3d commit 049ead2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ ChangelogFormat getFormat() {
*/
String commitPrefix;

private Boolean createLinks = false;
Boolean createLinks;

/**
* Whether to escape HTML
*/
Boolean escapeHtml = false;
Boolean escapeHtml;

/**
* The header to print above the changelog
Expand Down Expand Up @@ -150,6 +150,8 @@ void prepare() {
branchLink = unescapeFormatNewlines(branchLink);
branchOnlyLink = unescapeFormatNewlines(branchOnlyLink);
commitPrefix = unescapeFormatNewlines(commitPrefix);
createLinks = Optional.ofNullable(createLinks).orElse(false);
escapeHtml = Optional.ofNullable(escapeHtml).orElse(false);
header = unescapeFormatNewlines(header);
separator = unescapeFormatNewlines(separator);
tag = unescapeFormatNewlines(tag);
Expand Down

0 comments on commit 049ead2

Please sign in to comment.