Don't return a pointer in Item.LastAccessed()
This commit is contained in:
parent
c63dcbab96
commit
78ff45eea0
5
cache.go
5
cache.go
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue