Skip to content

Commit

Permalink
fixed an ineffassign warning
Browse files Browse the repository at this point in the history
  • Loading branch information
d-led committed Jan 26, 2022
1 parent b83f69e commit 3bc1788
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main_test_support.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ import (
"crypto/x509"
"crypto/x509/pkix"
"encoding/pem"
"github.com/golang-jwt/jwt"
"log"
"math/big"
"net/http/httptest"
"os"
"time"

"github.com/golang-jwt/jwt"
)

// adapted the testing technique from
Expand Down Expand Up @@ -50,7 +51,7 @@ func createTestCertificates() (string, string, interface{}) {
const cert = "cert.pem"
var err error
var priv interface{}
priv, err = rsa.GenerateKey(rand.Reader, 2048)
priv, _ = rsa.GenerateKey(rand.Reader, 2048)

serial := new(big.Int)
serial.SetInt64(1)
Expand Down

0 comments on commit 3bc1788

Please sign in to comment.