From ba4aa89e9ac950eeeebc8bb58d7ef5d9de73b88b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20C=2E=20For=C3=A9s?= Date: Wed, 31 Jul 2024 16:54:08 +0200 Subject: [PATCH] fix(core): update go.mod and small qol --- go.mod | 2 +- task.go | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 96c7bb1..298ac06 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/studiolambda/yotei -go 1.22 +go 1.22.0 diff --git a/task.go b/task.go index 5f7576f..3c4ed27 100644 --- a/task.go +++ b/task.go @@ -34,9 +34,8 @@ type Task struct { // A list of actionable tasks type Tasks []*Task -var ( - DurationUnlimited time.Duration = 0 -) +// Determines that the task can take unlimited duration. +var DurationUnlimited time.Duration = 0 // NewTask creates a new task with the given handler. //