fix smells

This commit is contained in:
A.Unger
2021-11-02 14:48:40 +01:00
parent 2d7a394a30
commit 2a14bb362a
3 changed files with 3 additions and 14 deletions

View File

@@ -12,11 +12,6 @@ import (
"github.com/urfave/cli/v2"
)
var (
defaultConfigPaths = []string{"/etc/ocis", "$HOME/.ocis", "./config"}
defaultFilename = "accounts"
)
// Execute is the entry point for the ocis-accounts command.
func Execute(cfg *config.Config) error {
app := &cli.App{

View File

@@ -1,7 +1,6 @@
package http
import (
"crypto/tls"
"strings"
"time"
@@ -34,11 +33,3 @@ func NewService(opts ...Option) Service {
return Service{micro.NewService(wopts...)}
}
func transport(secure *tls.Config) string {
if secure != nil {
return "https"
}
return "http"
}

View File

@@ -75,6 +75,9 @@ func ParseConfig(c *cli.Context, cfg *config.Config) error {
}
err = cnf.BindStruct("", cfg)
if err != nil {
return err
}
return nil
}