Skip to content

Commit

Permalink
efix for PR123 (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
markcurtis1970 authored Nov 8, 2023
1 parent 9b76f58 commit f347e07
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cmd/root/helpers/fshelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import (
"io/fs"
"os"
"path/filepath"

"github.com/dremio/dremio-diagnostic-collector/cmd/local/conf"
)

// fshelper provides functions to wrapper os file system calls
Expand Down Expand Up @@ -116,11 +114,7 @@ func (f RealFileSystem) Mkdir(name string, perms os.FileMode) error {

// MkdirTemp
func (f RealFileSystem) MkdirTemp(name string, pattern string) (dir string, err error) {
if conf.KeyTmpOutputDir == "" {
dir, err = os.MkdirTemp(name, pattern)
} else {
dir = conf.KeyTmpOutputDir
}
dir, err = os.MkdirTemp(name, pattern)
return dir, err
}

Expand Down

0 comments on commit f347e07

Please sign in to comment.