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

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) {