Skip to content

Commit

Permalink
use filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonQ committed Oct 13, 2023
1 parent 7ed4ec1 commit 6d0c9e3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"crypto/sha512"
"fmt"
"os"
"path"
"path/filepath"
"testing"
"time"
Expand Down Expand Up @@ -73,7 +72,7 @@ func TestFetchVerify(t *testing.T) {
err := prepareFetchVerifyTests(dropPath, targetPath, filename, targetFilePath, hashTargetFilePath)
require.NoError(t, err)

pgp, err := os.ReadFile(path.Join(dropPath, "public-key.pgp"))
pgp, err := os.ReadFile(filepath.Join(dropPath, "public-key.pgp"))
require.NoError(t, err, "could not read public PGP key")
verifier, err := NewVerifier(log, config, pgp)
require.NoError(t, err, "could not create the verifier")
Expand Down

0 comments on commit 6d0c9e3

Please sign in to comment.