fixing sec issues
Some checks failed
CloudSave/pipeline/head There was a failure building this commit
Some checks failed
CloudSave/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -63,9 +63,15 @@ func (p *SyncCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{})
|
||||
|
||||
pg := progressbar.New(-1)
|
||||
destroyPg := func() {
|
||||
pg.Finish()
|
||||
pg.Clear()
|
||||
pg.Close()
|
||||
if err := pg.Finish(); err != nil {
|
||||
slog.Error("failed to finish progressbar", "err", err)
|
||||
}
|
||||
if err := pg.Clear(); err != nil {
|
||||
slog.Error("failed to clear progressbar", "err", err)
|
||||
}
|
||||
if err := pg.Close(); err != nil {
|
||||
slog.Error("failed to close progressbar", "err", err)
|
||||
}
|
||||
}
|
||||
|
||||
pg.Describe(fmt.Sprintf("[%s] Checking status...", g.Name))
|
||||
|
||||
Reference in New Issue
Block a user