Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmoraisjr committed Sep 14, 2024
1 parent a7e4b1f commit ddd7be3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/haproxy/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (i *instance) AcmeCheck(source string) (int, error) {
if !le.IsLeader() {
msg := fmt.Sprintf("skipping acme periodic check, leader is %s", le.LeaderName())
i.logger.Info(msg)
return count, fmt.Errorf(msg)
return count, fmt.Errorf("%s", msg)
}
i.logger.Info("starting certificate check (%s)", source)
for _, storage := range i.config.AcmeData().Storages().BuildAcmeStorages() {
Expand Down Expand Up @@ -573,7 +573,7 @@ func (i *instance) check() error {
out, err := exec.Command("haproxy", "-c", "-f", i.options.HAProxyCfgDir).CombinedOutput()
outstr := string(out)
if err != nil {
return fmt.Errorf(outstr)
return fmt.Errorf("%s", outstr)
}
}
return nil
Expand Down

0 comments on commit ddd7be3

Please sign in to comment.