From a6ba87044455490110a55cbb4c1131b513434cf6 Mon Sep 17 00:00:00 2001 From: Pavel Shibaev Date: Wed, 25 Sep 2024 15:09:28 +0200 Subject: [PATCH] (fix/solve) Refactor to avoid using directory separator --- client/chain/ofac.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/chain/ofac.go b/client/chain/ofac.go index 86e79056..eccd14fc 100644 --- a/client/chain/ofac.go +++ b/client/chain/ofac.go @@ -6,6 +6,7 @@ import ( "io" "net/http" "os" + "path" ) const ( @@ -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 {