From c9606766584183be99e22077d184143177f2fad5 Mon Sep 17 00:00:00 2001 From: Carson Long <12767276+ctlong@users.noreply.github.com> Date: Mon, 19 Aug 2024 09:43:17 -0700 Subject: [PATCH] fix lint error: fmt.Sprintf() on string Fixes the following golanci-lint error: ``` printf: non-constant format string in call to fmt.Sprintf ``` Since `c.cf.TCPDomain` is a string, we can just return it without the `fmt.Sprintf()` wrapper. --- cfWorkflow/cfWorkflow.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfWorkflow/cfWorkflow.go b/cfWorkflow/cfWorkflow.go index b49c7d4..38e1a50 100644 --- a/cfWorkflow/cfWorkflow.go +++ b/cfWorkflow/cfWorkflow.go @@ -59,7 +59,7 @@ func (c *cfWorkflow) AppUrl() string { } func (c *cfWorkflow) TCPDomain() string { - return fmt.Sprintf(c.cf.TCPDomain) + return c.cf.TCPDomain } func (c *cfWorkflow) TCPPort() int {