mirror of https://github.com/spf13/cast.git
Fixing style
This commit is contained in:
parent
e5ac093b2d
commit
6cd11a28a2
6
caste.go
6
caste.go
|
@ -1273,9 +1273,9 @@ func parseDateWith(s string, dates []string) (d time.Time, e error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if i, err := strconv.Atoi(s); err == nil {
|
if i, err := strconv.Atoi(s); err == nil {
|
||||||
return time.Unix(int64(i), 0), nil
|
return time.Unix(int64(i), 0), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return d, fmt.Errorf("unable to parse date: %s", s)
|
return d, fmt.Errorf("unable to parse date: %s", s)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue