From 4304874fa63ad184b26b6caa564286fcd1ff369c Mon Sep 17 00:00:00 2001 From: Oliver Jakoubek Date: Fri, 24 Mar 2023 17:04:48 +0100 Subject: [PATCH] Show Issue Reference in Product Reference only if set Fixes #18 --- product_reference.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/product_reference.go b/product_reference.go index 48d4985..0f205b4 100644 --- a/product_reference.go +++ b/product_reference.go @@ -31,6 +31,9 @@ func NewMissingParameter(missingRate, missingSize int) MissingParameter { } func (pr *ProductReference) IssueReference() string { + if pr.issueReference == "" { + return "" + } return fmt.Sprintf("+99195%-8s", pr.issueReference) }