mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-27 20:36:29 -04:00
Use updated "new()" behavior from Go 1.26
This commit is contained in:
@@ -67,8 +67,7 @@ func GetAllEntryData() (EntryMapT, error) {
|
||||
ageInfo, err = os.Stat(global.GetRealAgePath(vanityPath))
|
||||
var ageTimestamp *int64
|
||||
if err == nil {
|
||||
ageTime := ageInfo.ModTime().Unix()
|
||||
ageTimestamp = &ageTime
|
||||
ageTimestamp = new(ageInfo.ModTime().Unix())
|
||||
} else if !os.IsNotExist(err) {
|
||||
return nil, errors.New("unable to read age time for " + vanityPath + ": " + err.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user