summaryrefslogtreecommitdiffstats
path: root/model/license.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/license.go')
-rw-r--r--model/license.go12
1 files changed, 2 insertions, 10 deletions
diff --git a/model/license.go b/model/license.go
index a26babcd2..3e42a2343 100644
--- a/model/license.go
+++ b/model/license.go
@@ -155,19 +155,11 @@ func (f *Features) SetDefaults() {
}
func (l *License) IsExpired() bool {
- now := GetMillis()
- if l.ExpiresAt < now {
- return true
- }
- return false
+ return l.ExpiresAt < GetMillis()
}
func (l *License) IsStarted() bool {
- now := GetMillis()
- if l.StartsAt < now {
- return true
- }
- return false
+ return l.StartsAt < GetMillis()
}
func (l *License) ToJson() string {