Use updated "new()" behavior from Go 1.26

This commit is contained in:
2026-02-09 21:12:09 -05:00
parent 9c0ed69d7f
commit 7ecd143b81
3 changed files with 6 additions and 11 deletions
+1 -2
View File
@@ -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())
}