From 2fc9bdf6a6c5da8b9e74c9105c1c1627c9c3a786 Mon Sep 17 00:00:00 2001 From: PeaAshMeter Date: Thu, 12 Feb 2026 00:01:43 +0300 Subject: [PATCH] Clean up trailing whitespace in audio crossfade function --- lib/audio.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/audio.lua b/lib/audio.lua index 465f72a..58d0e22 100644 --- a/lib/audio.lua +++ b/lib/audio.lua @@ -40,7 +40,7 @@ end --- @param ms number? in milliseconds function audio:crossfade(from, to, ms) print("[Audio]: Triggered crossfade") - + -- Stop previous 'from' if it's dangling to avoid leaks if self.from and self.from ~= from and self.from ~= to then self.from:stop() @@ -54,7 +54,7 @@ function audio:crossfade(from, to, ms) -- Reuse fader object to allow task cancellation if not self.fader then self.fader = { value = 0 } end self.fader.value = 0 - + task.tween(self.fader, { value = 1 }, ms or 1000, ease.easeOutCubic)(function() if self.from then self.from:setVolume(0)