gofumpt -w -l -extra . (#661)

This commit is contained in:
6543
2022-01-05 21:50:23 +01:00
committed by GitHub
parent dec0eeeed7
commit 2f91bdd4a0
35 changed files with 79 additions and 90 deletions

View File

@@ -93,7 +93,7 @@ func loop(c *cli.Context) error {
// grpc.Dial(target, ))
var transport = grpc.WithInsecure()
transport := grpc.WithInsecure()
if c.Bool("secure-grpc") {
transport = grpc.WithTransportCredentials(grpccredentials.NewTLS(&tls.Config{InsecureSkipVerify: c.Bool("skip-insecure-grpc")}))
@@ -111,7 +111,6 @@ func loop(c *cli.Context) error {
Timeout: c.Duration("keepalive-timeout"),
}),
)
if err != nil {
return err
}

View File

@@ -226,7 +226,7 @@ func run(c *cli.Context) error {
}
dir := cacheDir()
if err := os.MkdirAll(dir, 0700); err != nil {
if err := os.MkdirAll(dir, 0o700); err != nil {
return err
}