mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Fix playback time formatting
This commit is contained in:
parent
f257632354
commit
e06febd2e3
@ -2,7 +2,7 @@ import Foundation
|
|||||||
|
|
||||||
extension Double {
|
extension Double {
|
||||||
func formattedAsPlaybackTime() -> String? {
|
func formattedAsPlaybackTime() -> String? {
|
||||||
guard !isZero else {
|
guard !isZero, isFinite else {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user