fix: resolve gocritic issue

Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
Babak K. Shandiz 2025-11-03 15:32:44 +00:00
parent 0eb5640edb
commit 3ad3fcdce9
No known key found for this signature in database
GPG key ID: 9472CAEFF56C742E
2 changed files with 3 additions and 3 deletions

View file

@ -696,7 +696,7 @@ func Test_parsePathFromFileArg(t *testing.T) {
{
name: "go to root of repository",
currentDir: "pkg/cmd/browse/",
fileArg: filepath.Join("../../../"),
fileArg: filepath.FromSlash("../../../"),
expectedPath: "",
},
{

View file

@ -527,7 +527,7 @@ func Test_runDownload(t *testing.T) {
},
},
expectedFiles: []string{
filepath.Join("non-artifact-2-file"),
"non-artifact-2-file",
},
},
{
@ -681,7 +681,7 @@ func Test_runDownload(t *testing.T) {
})
},
expectedFiles: []string{
filepath.Join("artifact-2-file"),
"artifact-2-file",
},
},
{