all: Clean up fmt.Errorf usage (#8309)

This commit is contained in:
greatroar
2022-04-27 20:30:13 +02:00
committed by GitHub
parent 4031568cdf
commit 49488c0e71
4 changed files with 11 additions and 8 deletions
+2 -1
View File
@@ -11,6 +11,7 @@ import (
"bufio"
"context"
"crypto/tls"
"errors"
"fmt"
"log"
"os"
@@ -40,7 +41,7 @@ func (c *CLI) Run() error {
if c.HomeDir != "" {
if c.ConfDir != "" {
return fmt.Errorf("--home must not be used together with --config")
return errors.New("--home must not be used together with --config")
}
c.ConfDir = c.HomeDir
}