From db22fab7973d4df0fc1464c1060ceaf20d91033b Mon Sep 17 00:00:00 2001 From: Matthias <5011972+fasmat@users.noreply.github.com> Date: Mon, 26 Feb 2024 22:43:31 +0000 Subject: [PATCH] Fix staticcheck --- cmd/postcli/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/postcli/main.go b/cmd/postcli/main.go index a84cc8416..6559bb138 100644 --- a/cmd/postcli/main.go +++ b/cmd/postcli/main.go @@ -399,7 +399,7 @@ func loadKey() (ed25519.PublicKey, error) { keyPath := filepath.Join(opts.DataDir, edKeyFileName) data, err := os.ReadFile(keyPath) if err != nil { - return nil, fmt.Errorf("could not read private key from %s: %w\n", keyPath, err) + return nil, fmt.Errorf("could not read private key from %s: %w", keyPath, err) } dst := make([]byte, ed25519.PrivateKeySize)