fix: resolve gocritic issue
Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
parent
0eb5640edb
commit
3ad3fcdce9
2 changed files with 3 additions and 3 deletions
|
|
@ -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: "",
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue