mirror of
https://github.com/grdl/git-get.git
synced 2026-02-04 12:46:46 +00:00
Fix issues found by ineffassign linter
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user