1
0
mirror of https://github.com/go-task/task.git synced 2025-11-25 22:32:55 +02:00

revert reader

This commit is contained in:
Valentin Maerten
2025-11-15 17:40:34 +01:00
parent 28218f05a8
commit f0b83c9628

View File

@@ -187,7 +187,6 @@ func (o *promptFuncOption) ApplyToReader(r *Reader) {
// building an [ast.TaskfileGraph] as it goes. If any errors occur, they will be
// returned immediately.
func (r *Reader) Read(ctx context.Context, node Node) (*ast.TaskfileGraph, error) {
startTime := time.Now()
// Clean up git cache after reading all taskfiles
defer func() {
@@ -198,9 +197,6 @@ func (r *Reader) Read(ctx context.Context, node Node) (*ast.TaskfileGraph, error
return nil, err
}
elapsed := time.Since(startTime)
r.debugf("task: Taskfiles loaded in %.2fs\n", elapsed.Seconds())
return r.graph, nil
}