🛠 golangci-lint
This commit is contained in:
parent
8d74dc24e5
commit
7aae44048a
9 changed files with 144 additions and 85 deletions
|
|
@ -32,7 +32,10 @@ func ParseFlags(name string, args []string) (*pflag.FlagSet, error) {
|
|||
}
|
||||
|
||||
if *DryRun {
|
||||
flags.Set("loop", "false")
|
||||
err := flags.Set("loop", "false")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
return flags, nil
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ package convids
|
|||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"codeberg.org/danjones000/utils/chill"
|
||||
|
|
@ -18,7 +17,7 @@ func GetWalker(ctx context.Context, dryRun bool, in io.Reader, out, errOut io.Wr
|
|||
gs := conutils.GetShowWithIO(ctx, in, out, errOut)
|
||||
return func(s *conutils.Show, path string) error {
|
||||
ct := chill.Chill(ctx)
|
||||
msg := fmt.Sprintf("Waiting for CPU to cool, for %s", path)
|
||||
msg := "Waiting for CPU to cool, for " + path
|
||||
sp := spin.Spin(ct, msg)
|
||||
err := sp.Wait()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue