forked from TrueCloudLab/lego
returt to master version for clean pull request
This commit is contained in:
parent
ec18c6e42f
commit
1107e337a5
1 changed files with 0 additions and 4 deletions
|
@ -10,7 +10,6 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"gopkg.in/square/go-jose.v1"
|
"gopkg.in/square/go-jose.v1"
|
||||||
"errors"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type jws struct {
|
type jws struct {
|
||||||
|
@ -101,9 +100,6 @@ func (j *jws) Nonce() (string, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nonce, err
|
return nonce, err
|
||||||
}
|
}
|
||||||
if len(j.nonces) == 0 {
|
|
||||||
return "", errors.New("Can't get nonce")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nonce, j.nonces = j.nonces[len(j.nonces)-1], j.nonces[:len(j.nonces)-1]
|
nonce, j.nonces = j.nonces[len(j.nonces)-1], j.nonces[:len(j.nonces)-1]
|
||||||
|
|
Loading…
Reference in a new issue