summaryrefslogtreecommitdiff
path: root/internal/run.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/run.go')
-rw-r--r--internal/run.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/run.go b/internal/run.go
index ea70bec..a3d42df 100644
--- a/internal/run.go
+++ b/internal/run.go
@@ -17,13 +17,13 @@ func Run(ctx context.Context, args config.Args) error {
for _, platform := range args.Platforms {
path, err := schedule.Run(args, platform)
- switch err {
- case nil:
+ switch {
+ case err == nil:
log.Println("Scheduling", path)
// TODO: Implement action here to post it
- case schedule.ErrNothingToSchedule:
+ case errors.Is(err, schedule.ErrNothingToSchedule):
log.Println("Nothing to be scheduled for", platform)
- case schedule.ErrNothingQueued
+ case errors.Is(err, schedule.ErrNothingQueued):
log.Println("Nothing queued for", platform)
default:
return err