Skip to content

Commit 4e50445

Browse files
committed
fix(crontab): satisfy current staticcheck rules
1 parent 58c5c9c commit 4e50445

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/crontab/writer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ func FormatCrontab(jobs []types.CronJob) string {
127127
b.WriteString("# Do not edit the marker comments\n\n")
128128

129129
for _, job := range jobs {
130-
b.WriteString(fmt.Sprintf("%s %d\n", managedIDPrefix, job.ID))
130+
fmt.Fprintf(&b, "%s %d\n", managedIDPrefix, job.ID)
131131
if job.Description != "" {
132-
b.WriteString(fmt.Sprintf("# description: %s\n", job.Description))
132+
fmt.Fprintf(&b, "# description: %s\n", job.Description)
133133
}
134134

135135
line := fmt.Sprintf("%s %s", job.Schedule, job.Command)

0 commit comments

Comments
 (0)