mirror of
https://github.com/go-task/task.git
synced 2026-07-07 22:18:47 +00:00
feat: enforce gofumpt linter
This commit is contained in:
committed by
Andrey Nering
parent
aab51c331f
commit
09c9094a6b
@@ -263,8 +263,8 @@ func checkCircularIncludes(node *ReaderNode) error {
|
||||
if node.Parent == nil {
|
||||
return errors.New("task: failed to check for include cycle: node.Parent was nil")
|
||||
}
|
||||
var curNode = node
|
||||
var basePath = filepathext.SmartJoin(node.Dir, node.Entrypoint)
|
||||
curNode := node
|
||||
basePath := filepathext.SmartJoin(node.Dir, node.Entrypoint)
|
||||
for curNode.Parent != nil {
|
||||
curNode = curNode.Parent
|
||||
curPath := filepathext.SmartJoin(curNode.Dir, curNode.Entrypoint)
|
||||
|
||||
Reference in New Issue
Block a user