Skip to content

Commit 4922e67

Browse files
committed
Use a constant instead of plain number
1 parent 2d86942 commit 4922e67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

timezones.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,8 @@ func LoadTZData(tzdata []byte) (*Template, error) {
430430
}
431431
}
432432

433-
if len(zones) > 254 {
434-
// Template.Zones can have max 254 zones so that we can always create *time.Location unambiguously.
433+
if len(zones) > maxUserZones {
434+
// Template.Zones can have only maxUserZones so that we can always create *time.Location unambiguously.
435435
return nil, errTooManyZones
436436
}
437437

0 commit comments

Comments
 (0)