UUUUGH
This commit is contained in:
parent
a4b11d0b75
commit
67926677e5
1 changed files with 2 additions and 1 deletions
|
@ -153,7 +153,7 @@ func scanMixedDelay(str string) (bool, time.Time, error) {
|
||||||
num := 0
|
num := 0
|
||||||
sep := ' '
|
sep := ' '
|
||||||
for len(remaining) > 1 {
|
for len(remaining) > 1 {
|
||||||
scanned, err := fmt.Sscanf(remaining, "%d%c", &num, &sep)
|
_, err := fmt.Sscanf(remaining, "%d%c", &num, &sep)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, now, err
|
return false, now, err
|
||||||
}
|
}
|
||||||
|
@ -178,6 +178,7 @@ func scanMixedDelay(str string) (bool, time.Time, error) {
|
||||||
}
|
}
|
||||||
return true, now, nil
|
return true, now, nil
|
||||||
*/
|
*/
|
||||||
|
return false, now, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func parseDuration(date string) (time.Time, error) {
|
func parseDuration(date string) (time.Time, error) {
|
||||||
|
|
Reference in a new issue