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:
@@ -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, "")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user