From f08991137e14e4c70aedd757a878c5dc13834f5a Mon Sep 17 00:00:00 2001 From: MatyiFKBT <6183867+MatyiFKBT@users.noreply.github.com> Date: Mon, 15 Sep 2025 15:02:12 +0200 Subject: [PATCH] refactor: check for Server var in template --- stdlib/stdlib.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stdlib/stdlib.go b/stdlib/stdlib.go index 0b1d758..57b784d 100644 --- a/stdlib/stdlib.go +++ b/stdlib/stdlib.go @@ -150,7 +150,9 @@ func templates(api *confluence.API) (*template.Template, error) { `ac:jira:ticket`: text( ``, `{{ .Ticket }}`, - `{{ or .Server "System JIRA" }}`, + `{{ if .Server }}`, + `{{ .Server }}`, + `{{ end }}`, ``, ),