mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-12 10:47:05 +02:00
More CodeQL fixes
This commit is contained in:
@@ -115,11 +115,9 @@ func ISO8601Parse(raw string) (time.Time, error) {
|
||||
text = text[:9]
|
||||
}
|
||||
if text != "" {
|
||||
n, err := strconv.ParseUint(text, 10, 64)
|
||||
if err != nil {
|
||||
if nsec, err = strconv.ParseInt(text, 10, 64); err != nil {
|
||||
return errf("timestamp does not have a valid nanosecond field")
|
||||
}
|
||||
nsec = int64(n)
|
||||
for ; extra > 0; extra-- {
|
||||
nsec *= 10
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user