Skip to content

Commit

Permalink
fix lint error: fmt.Sprintf() on string
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ctlong committed Aug 21, 2024
1 parent d0bbf6d commit c960676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cfWorkflow/cfWorkflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c960676

Please sign in to comment.