Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
  • Loading branch information
JaySon-Huang committed Jun 25, 2021
1 parent 5ac3d52 commit 2a33192
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/time.go
Original file line number Diff line number Diff line change
Expand Up @@ -3014,7 +3014,7 @@ func parseSep(input string) (string, parseState) {

func time12Hour(t *CoreTime, input string, ctx map[string]int) (string, bool) {
tryParse := func(input string) (string, parseState) {
state := parseStateNormal
var state parseState
// hh:mm:ss AM
/// Note that we should update `t` as soon as possible, or we
/// can not get correct result for incomplete input like "12:13"
Expand Down Expand Up @@ -3092,7 +3092,7 @@ func time24Hour(t *CoreTime, input string, ctx map[string]int) (string, bool) {
/// Note that we should update `t` as soon as possible, or we
/// can not get correct result for incomplete input like "12:13"
/// that is shorter than "hh:mm:ss"
state := parseStateNormal
var state parseState
result := oneOrTwoDigitRegex.FindString(input) // 0..23
length := len(result)
hour, succ := parseDigits(input, length)
Expand Down

0 comments on commit 2a33192

Please sign in to comment.