chore: simplify
This commit is contained in:
parent
8d8ac5c72e
commit
08af3dae9c
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ func (c *State) Encrypt(key []byte) string {
|
|||
}
|
||||
|
||||
func (c *State) Validate() error {
|
||||
if c.Time.Add(stateValidity).After(time.Now()) {
|
||||
if time.Since(c.Time) > stateValidity {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue