Skip to content

Commit

Permalink
(fix/solve) Fix path derivation for OFAC
Browse files Browse the repository at this point in the history
  • Loading branch information
shibaeff committed Sep 24, 2024
1 parent 4700140 commit fef78fa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions client/chain/ofac.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"io"
"net/http"
"os"
"path/filepath"
)

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

func getOfacListPath() string {
currentDirectory, _ := os.Getwd()
return filepath.Join(currentDirectory, "..", "metadata", ofacListFilename)
return getFileAbsPath(fmt.Sprintf("../metadata/%s", ofacListFilename))
}

func DownloadOfacList() error {
Expand Down

0 comments on commit fef78fa

Please sign in to comment.