Skip to content

Commit

Permalink
(fix/solve) Refactor to avoid using directory separator
Browse files Browse the repository at this point in the history
  • Loading branch information
shibaeff committed Sep 25, 2024
1 parent fef78fa commit a6ba870
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/chain/ofac.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"io"
"net/http"
"os"
"path"
)

const (
Expand Down Expand Up @@ -38,7 +39,7 @@ func NewOfacChecker() (*OfacChecker, error) {
}

func getOfacListPath() string {
return getFileAbsPath(fmt.Sprintf("../metadata/%s", ofacListFilename))
return getFileAbsPath(path.Join("..", "metadata", ofacListFilename))
}

func DownloadOfacList() error {
Expand Down

0 comments on commit a6ba870

Please sign in to comment.