diff --git a/mock/mocktest/path.go b/mock/mocktest/path.go index 166e91537..b09a193cf 100644 --- a/mock/mocktest/path.go +++ b/mock/mocktest/path.go @@ -92,7 +92,7 @@ func mkPaths(nodes ...node) paths { return paths{} } - staged, committed := rPaths(nil, nil, nodes) + staged, committed := rPaths(paths{}, paths{}, nodes) if len(staged) > 0 { panic(errors.New("unresolved path detected")) }