6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-04 20:19:42 +00:00

Fix issues found by ineffassign linter

This commit is contained in:
Grzegorz Dlugoszewski
2025-08-24 18:00:59 +02:00
parent 2de126166f
commit 0db5ba6f5a

View File

@@ -414,7 +414,14 @@ func createTestDirTree(t *testing.T) string {
t.Helper()
root := test.TempDir(t, "")
err := os.MkdirAll(filepath.Join(root, "a", "b", "c"), os.ModePerm)
if err != nil {
t.Fatal(err)
}
err = os.MkdirAll(filepath.Join(root, "a", "x", "y"), os.ModePerm)
if err != nil {
t.Fatal(err)
}
_, err = os.Create(filepath.Join(root, "a", "x", "y", "file.txt"))
if err != nil {