diff options
| author | Paul Buetow <paul@buetow.org> | 2024-09-30 10:51:49 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-09-30 10:51:49 +0300 |
| commit | cbdce79d25206573d1f79c9c647dcaa251b69463 (patch) | |
| tree | 20f3bcbf76b28e8577a0dba3eb586b33e73a7699 /internal/run.go | |
| parent | 4d904e44a18acec779ef1d09de5d30e4890d1918 (diff) | |
add entry "class"
Diffstat (limited to 'internal/run.go')
| -rw-r--r-- | internal/run.go | 7 |
1 files changed, 3 insertions, 4 deletions
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 |
