crypto: fix ineffectual assignments (#22124)
* crypto/bls12381: fixed ineffectual assignment * crypto/signify: fix ineffectual assignment
This commit is contained in:
committed by
GitHub
parent
618454214b
commit
d667ee2d10
@ -25,7 +25,6 @@ import (
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
"runtime"
|
||||
|
||||
fuzz "github.com/google/gofuzz"
|
||||
"github.com/jedisct1/go-minisign"
|
||||
@ -129,6 +128,9 @@ func getKey(fileS string) (string, error) {
|
||||
func createKeyPair() (string, string) {
|
||||
// Create key and put it in correct format
|
||||
tmpKey, err := ioutil.TempFile("", "")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
defer os.Remove(tmpKey.Name())
|
||||
defer os.Remove(tmpKey.Name() + ".pub")
|
||||
defer os.Remove(tmpKey.Name() + ".sec")
|
||||
|
Reference in New Issue
Block a user