refactor: clean up code
This commit is contained in:
1 parent
5ebc707fe6
commit
1eb57044ad
3 files changed
+1
-6
No files matched your search
@@ -254,7 +254,3 @@ func CronNextTime(cronExpr string) time.Time {
|
||||
next := schedule.Next(now)
|
||||
return next
|
||||
}
|
||||
func UsageErrorf(cmd *cobra.Command, message string, args ...interface{}) error {
|
||||
msg := fmt.Sprintf(message, args...)
|
||||
return fmt.Errorf("%s\nSee '%s -h' for help and examples", msg, cmd.CommandPath())
|
||||
}
|
||||
Reference in new issue
Block a user