chore: use errors.New() instead of fmt.Errorf()

This commit is contained in:
Vincent Bernat
2025-07-29 07:42:31 +02:00
parent 18beb310ee
commit 5e669db4b3
5 changed files with 10 additions and 7 deletions

View File

@@ -4,7 +4,7 @@
package daemon
import (
"fmt"
"errors"
"testing"
"time"
@@ -87,7 +87,7 @@ func TestTombTracking(t *testing.T) {
case <-tomb.Dying():
t.Fatalf("Dying() should not happen inside the tomb")
case <-ch:
return fmt.Errorf("crashing")
return errors.New("crashing")
}
return nil
})