Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
a8147d2e
Commit
a8147d2e
authored
Oct 08, 2017
by
Sietse Ringers
Browse files
Tiny improvement
parent
c4ab7b22
Changes
1
Hide whitespace changes
Inline
Side-by-side
attributes.go
View file @
a8147d2e
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment