Skip to content

Commit

Permalink
use "path/filepath" to build file path
Browse files Browse the repository at this point in the history
Signed-off-by: seiya <20365512+seiyab@users.noreply.github.com>
  • Loading branch information
seiyab committed Mar 24, 2024
1 parent 16e954a commit 6e80a73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/format/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"io"
"os"
"path"
"path/filepath"
"strings"

"github.com/hashicorp/go-multierror"
Expand Down Expand Up @@ -138,7 +138,7 @@ func newMultiWriter(options ...scanResultWriterDescription) (_ *scanResultMultiW
})
default:
// create any missing subdirectories
dir := path.Dir(option.Path)
dir := filepath.Dir(option.Path)
if dir != "" {
s, err := os.Stat(dir)
if err != nil {
Expand Down

0 comments on commit 6e80a73

Please sign in to comment.