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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user