mirror of
https://github.com/grdl/git-get.git
synced 2026-02-04 16:49:43 +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()
|
t.Helper()
|
||||||
root := test.TempDir(t, "")
|
root := test.TempDir(t, "")
|
||||||
err := os.MkdirAll(filepath.Join(root, "a", "b", "c"), os.ModePerm)
|
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)
|
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"))
|
_, err = os.Create(filepath.Join(root, "a", "x", "y", "file.txt"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user