6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-05 09:03:48 +00:00

Fix issues found by err113 linter

This commit is contained in:
Grzegorz Dlugoszewski
2025-08-24 16:53:48 +02:00
parent 1e1584ba33
commit f20ab7dea2
4 changed files with 18 additions and 18 deletions

View File

@@ -16,10 +16,6 @@ func TestFinder(t *testing.T) {
want int
}{
{
name: "no repos",
reposMaker: makeNoRepos,
want: 0,
}, {
name: "single repos",
reposMaker: makeSingleRepo,
want: 1,
@@ -59,7 +55,7 @@ func TestExists(t *testing.T) {
{
name: "dir does not exist",
path: "/this/directory/does/not/exist",
want: errDirNotExist,
want: ErrDirNotExist,
}, {
name: "dir exists",
path: os.TempDir(),
@@ -76,12 +72,6 @@ func TestExists(t *testing.T) {
}
}
func makeNoRepos(t *testing.T) string {
root := test.TempDir(t, "")
return root
}
func makeSingleRepo(t *testing.T) string {
root := test.TempDir(t, "")