sm
/
cache
1
0
Fork 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
1 changed files with 2 additions and 3 deletions

View File

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