Use filepath.Join instead of path.Join for file system file operations (#33978)

This commit is contained in:
Lunny Xiao authored and GitHub committed 2025-03-24 14:50:28 -07:00
1 parent 82bc8b8ce6
commit 3fe449c21a
12 files changed
+23 -56

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ func TestListUnadoptedRepositories_ListOptions(t *testing.T) {
username := "user2"
unadoptedList := []string{path.Join(username, "unadopted1"), path.Join(username, "unadopted2")}
for _, unadopted := range unadoptedList {
_ = os.Mkdir(path.Join(setting.RepoRootPath, unadopted+".git"), 0o755)
_ = os.Mkdir(filepath.Join(setting.RepoRootPath, unadopted+".git"), 0o755)
}
opts := db.ListOptions{Page: 1, PageSize: 1}