diff options
| author | Paul Buetow <paul@buetow.org> | 2024-12-11 22:07:51 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-12-11 22:07:51 +0200 |
| commit | 1dca76e728a70b70ee8001c87407acf962e731cd (patch) | |
| tree | 4636d5b8769595de135bca8977b951d0a570da48 /internal/run.go | |
| parent | a5529938536f7a530f0c55e5a82b16a4c80af5b4 (diff) | |
refactor a bit again
Diffstat (limited to 'internal/run.go')
| -rw-r--r-- | internal/run.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/run.go b/internal/run.go index f6cb327..c0d8234 100644 --- a/internal/run.go +++ b/internal/run.go @@ -17,7 +17,7 @@ func Run(ctx context.Context, args config.Args) error { if !softError(err) { return err } - _, _ = colour.Infoln(err) + colour.Infoln(err) } for platformStr, sizeLimit := range args.Platforms { @@ -27,7 +27,7 @@ func Run(ctx context.Context, args config.Args) error { } if err := runPlatform(ctx, args, platform, sizeLimit); err != nil { if softError(err) { - _, _ = colour.Infoln(err) + colour.Infoln(err) continue } return err @@ -41,10 +41,10 @@ func runPlatform(ctx context.Context, args config.Args, platform platforms.Platf en, err := schedule.Run(args, platform) switch { case errors.Is(err, schedule.ErrNothingToSchedule): - _, _ = colour.Infoln("Nothing to be scheduled for", platform) + colour.Infoln("Nothing to be scheduled for", platform) return nil case errors.Is(err, schedule.ErrNothingQueued): - _, _ = colour.Infoln("Nothing queued for", platform) + colour.Infoln("Nothing queued for", platform) return nil case err != nil: return err |
