Skip to content

Commit

Permalink
test: fix assertion linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Felixoid committed Feb 9, 2022
1 parent 0de20e8 commit d7f7a7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions glob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,11 +453,11 @@ func TestGlob(t *testing.T) { // nolint:funlen

t.Run("symlinks", func(t *testing.T) {
t.Parallel()
testFS := testFs(t, []string{
"./a/file",
}, nil).(testfs.FS)
var fsPath string
if testFS, ok := testFs(t, []string{"./a/file"}, nil).(testfs.FS); ok {
fsPath = testFS.Path()
}

fsPath := testFS.Path()
workingSymlink := filepath.Join(fsPath, "b")
brokenSymlink := filepath.Join(fsPath, "c")
err := os.Symlink("a", workingSymlink)
Expand Down

0 comments on commit d7f7a7c

Please sign in to comment.