diff options
Diffstat (limited to 'routers/web/repo/editor_test.go')
-rw-r--r-- | routers/web/repo/editor_test.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/routers/web/repo/editor_test.go b/routers/web/repo/editor_test.go index 2bebb6fd52..ac0c385897 100644 --- a/routers/web/repo/editor_test.go +++ b/routers/web/repo/editor_test.go @@ -70,9 +70,7 @@ func TestGetClosestParentWithFiles(t *testing.T) { gitRepo, _ := git.OpenRepository(git.DefaultContext, repo.RepoPath()) defer gitRepo.Close() commit, _ := gitRepo.GetBranchCommit(branch) - expectedTreePath := "" - - expectedTreePath = "" // Should return the root dir, empty string, since there are no subdirs in this repo + var expectedTreePath string // Should return the root dir, empty string, since there are no subdirs in this repo for _, deletedFile := range []string{ "dir1/dir2/dir3/file.txt", "file.txt", |