You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The condition Mon <= dec31wday is always true and the line can be changed to:
ifdec31wday:= (wday+31-day) %7; dec31wday<=Wed {
The text was updated successfully, but these errors were encountered:
odeke-em
changed the title
time: if condition is always true in ISOWeek()
time: remove unnecessary if condition segment Mon <= dec31wday since it is always true in ISOWeek()
Oct 12, 2017
Hi,
In ISOWeek() Mon is the first day of the week.
https://github.com/golang/go/blob/master/src/time/time.go#L565
The condition
Mon <= dec31wday
is always true and the line can be changed to:The text was updated successfully, but these errors were encountered: