pcloud: make compile with go1.6

This commit is contained in:
Nick Craig-Wood 2017-10-01 16:41:23 +01:00
parent 9e9297838f
commit a1d942e5c3
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ func (g *GetFileLinkResult) IsValid() bool {
if len(g.Hosts) == 0 {
return false
}
return time.Until(time.Time(g.Expires)) > 30*time.Second
return time.Time(g.Expires).Sub(time.Now()) > 30*time.Second
}
// URL returns a URL from the Path and Hosts. Check with IsValid