twitch-bot/helpers.go

12 lines
148 B
Go
Raw Permalink Normal View History

package main
import "time"
func fixDurationValue(d time.Duration) time.Duration {
if d >= time.Second {
return d
}
return d * time.Second
}