1
0

Don't return a pointer in Item.LastAccessed()

This commit is contained in:
Patrick Mylund Nielsen 2017-04-19 10:14:55 -04:00
parent c63dcbab96
commit 78ff45eea0

View File

@ -25,9 +25,8 @@ func (item Item) Expired() bool {
} }
// Return the time at which this item was last accessed. // Return the time at which this item was last accessed.
func (item Item) LastAccessed() *time.Time { func (item Item) LastAccessed() time.Time {
t := time.Unix(0, item.Accessed) return time.Unix(0, item.Accessed)
return &t
} }
const ( const (