From cbdce79d25206573d1f79c9c647dcaa251b69463 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 30 Sep 2024 10:51:49 +0300 Subject: add entry "class" --- internal/run.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'internal/run.go') diff --git a/internal/run.go b/internal/run.go index a3d42df..1bfc06a 100644 --- a/internal/run.go +++ b/internal/run.go @@ -18,16 +18,15 @@ func Run(ctx context.Context, args config.Args) error { for _, platform := range args.Platforms { path, err := schedule.Run(args, platform) switch { - case err == nil: - log.Println("Scheduling", path) - // TODO: Implement action here to post it case errors.Is(err, schedule.ErrNothingToSchedule): log.Println("Nothing to be scheduled for", platform) case errors.Is(err, schedule.ErrNothingQueued): log.Println("Nothing queued for", platform) - default: + case err != nil: return err } + + log.Println("Scheduling", path) } return nil -- cgit v1.2.3