mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-10 01:00:05 +00:00
12 lines
148 B
Go
12 lines
148 B
Go
|
package main
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
func fixDurationValue(d time.Duration) time.Duration {
|
||
|
if d >= time.Second {
|
||
|
return d
|
||
|
}
|
||
|
|
||
|
return d * time.Second
|
||
|
}
|