diff --git a/lib/workers/repository/updates/branch-name.ts b/lib/workers/repository/updates/branch-name.ts index 6a0cc6f19c..2a19844c2c 100644 --- a/lib/workers/repository/updates/branch-name.ts +++ b/lib/workers/repository/updates/branch-name.ts @@ -57,13 +57,15 @@ export function generateBranchName(update: RenovateConfig): void { hashLength = MIN_HASH_LENGTH; } - const additionalBranchPrefix = update.additionalBranchPrefix - ? template.compile(String(update.additionalBranchPrefix), update) - : ''; + const additionalBranchPrefix = template.compile( + String(update.additionalBranchPrefix || ''), + update + ); - const branchTopic = update.branchTopic - ? template.compile(String(update.branchTopic), update) - : ''; + const branchTopic = template.compile( + String(update.branchTopic || ''), + update + ); let hashInput = additionalBranchPrefix + branchTopic;