chore: simplify

This commit is contained in:
andig 2023-11-01 09:03:43 +01:00
parent 8d8ac5c72e
commit 08af3dae9c

View file

@ -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
}