Skip to content

Commit

Permalink
Remove parenthesis
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Rittmeister <dr@schlau.bi>
  • Loading branch information
freyacodes and DRSchlaubi committed Oct 10, 2023
1 parent 7b52135 commit f5127ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ internal class WebsocketPlayer(internal val node: NodeImpl, internal val guildId
private var updateTime: Instant = Instant.DISTANT_PAST
override val positionDuration: Duration
get() {
val trackLength = playingTrack?.info?.length?.milliseconds ?: return (-1).milliseconds
val trackLength = playingTrack?.info?.length?.milliseconds ?: return -1.milliseconds
val now = Clock.System.now()
val elapsedSinceUpdate = now - updateTime

Expand Down

0 comments on commit f5127ed

Please sign in to comment.