Commit a8147d2e authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Tiny improvement

parent c4ab7b22
......@@ -194,6 +194,7 @@ func (attr *MetadataAttribute) setValidityDuration(weeks int) {
func (attr *MetadataAttribute) setExpiryDate(timestamp *Timestamp) error {
if timestamp == nil {
attr.setValidityDuration(ValidityDefault)
return nil
}
expiry := time.Time(*timestamp).Unix()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment