1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-11 17:51:01 +00:00

refactor(googlereader): replace Sprintf("%d") with FormatInt

see https://medium.com/swlh/bad-go-frivolous-sprintf-2ad28fedf1a0
This commit is contained in:
gudvinr 2025-08-03 23:15:49 +03:00 committed by GitHub
parent a43d150a27
commit 76ef8f3579
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -769,8 +769,8 @@ func (h *handler) streamItemContentsHandler(w http.ResponseWriter, r *http.Reque
ID: convertEntryIDToLongFormItemID(entry.ID),
Title: entry.Title,
Author: entry.Author,
TimestampUsec: fmt.Sprintf("%d", entry.Date.UnixMicro()),
CrawlTimeMsec: fmt.Sprintf("%d", entry.CreatedAt.UnixMilli()),
TimestampUsec: strconv.FormatInt(entry.Date.UnixMicro(), 10),
CrawlTimeMsec: strconv.FormatInt(entry.CreatedAt.UnixMilli(), 10),
Published: entry.Date.Unix(),
Updated: entry.ChangedAt.Unix(),
Categories: categories,