Fix issues raised by linter

This commit is contained in:
Frederik Ring
2024-04-26 17:10:06 +02:00
parent 292d47eb19
commit e613f6046f
2 changed files with 4 additions and 9 deletions

View File

@@ -131,12 +131,8 @@ func (c *command) schedule(strategy configStrategy) error {
c.logger.Warn(
fmt.Sprintf("Scheduled cron expression %s will never run, is this intentional?", config.BackupCronExpression),
)
if err != nil {
return errwrap.Wrap(err, "error scheduling")
}
c.schedules = append(c.schedules, id)
}
c.schedules = append(c.schedules, id)
}
return nil