fix: remove redundant type declaration in shorturl.go

Remove explicit time.Time type from referenceTime variable declaration
as it can be inferred from the right-hand side, fixing staticcheck ST1023.
This commit is contained in:
nmarrs
2025-12-09 12:49:35 -08:00
parent 43b4a6cfc1
commit 10b5351a03
@@ -96,7 +96,7 @@ func normalizePath(pathStr string) string {
// If "to" is present and very close to now (within 5 minutes), use it as the reference point
// This handles the case where "to" represents "now" at the time the URL was created
var referenceTime time.Time = now
var referenceTime = now
if toVal, hasTo := values["to"]; hasTo && len(toVal) > 0 {
if toTime, err := time.Parse(time.RFC3339, toVal[0]); err == nil {
// Try with nanoseconds too