This commit is contained in:
Hamcha 2018-11-02 15:22:24 +01:00
parent a4b11d0b75
commit 67926677e5
Signed by: hamcha
GPG Key ID: A40413D21021EAEE
1 changed files with 2 additions and 1 deletions

View File

@ -153,7 +153,7 @@ func scanMixedDelay(str string) (bool, time.Time, error) {
num := 0
sep := ' '
for len(remaining) > 1 {
scanned, err := fmt.Sscanf(remaining, "%d%c", &num, &sep)
_, err := fmt.Sscanf(remaining, "%d%c", &num, &sep)
if err != nil {
return false, now, err
}
@ -178,6 +178,7 @@ func scanMixedDelay(str string) (bool, time.Time, error) {
}
return true, now, nil
*/
return false, now, nil
}
func parseDuration(date string) (time.Time, error) {