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 28, 2021
1 parent 3d2f0ab commit a6633e3
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 @@ -3004,7 +3004,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 @@ -3082,7 +3082,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 a6633e3

Please sign in to comment.