Skip to content

Commit a177db9

Browse files
author
Francesco Cosentino
committed
fixed minor linting issues
1 parent 21765ae commit a177db9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ type Task struct {
109109
}
110110

111111
// NewTask creates a new task with the provided function and context
112-
func NewTask(fn TaskFunc, ctx context.Context) (*Task, error) {
112+
func NewTask(ctx context.Context, fn TaskFunc) (*Task, error) {
113113
task := &Task{
114114
ID: uuid.New(),
115115
Execute: fn,

worker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ func (tm *TaskManager) cancelTask(task *Task, status TaskStatus, notifyWG bool)
462462
//
463463
// get the cancelled tasks
464464
// cancelledTasks := tm.GetCancelledTasks()
465-
465+
//
466466
// select {
467467
// case task := <-cancelledTasks:
468468
//

0 commit comments

Comments
 (0)