From f5127edc9958729c49ba324bba72d1f9925afab9 Mon Sep 17 00:00:00 2001 From: Freya Arbjerg Date: Tue, 10 Oct 2023 10:15:18 +0200 Subject: [PATCH] Remove parenthesis Co-authored-by: Michael Rittmeister --- .../dev/schlaubi/lavakord/audio/internal/WebsocketPlayer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/commonMain/kotlin/dev/schlaubi/lavakord/audio/internal/WebsocketPlayer.kt b/core/src/commonMain/kotlin/dev/schlaubi/lavakord/audio/internal/WebsocketPlayer.kt index d3fceec3..3d75fea8 100644 --- a/core/src/commonMain/kotlin/dev/schlaubi/lavakord/audio/internal/WebsocketPlayer.kt +++ b/core/src/commonMain/kotlin/dev/schlaubi/lavakord/audio/internal/WebsocketPlayer.kt @@ -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