From 9b6e8b434ded520b5fc244fdb8f6fa5089d4dda0 Mon Sep 17 00:00:00 2001 From: Heberti Almeida Date: Tue, 10 Jan 2017 11:42:18 -0200 Subject: [PATCH] Fixed project warning --- Source/FolioReaderAudioPlayer.swift | 2 +- Source/ScrollScrubber.swift | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Source/FolioReaderAudioPlayer.swift b/Source/FolioReaderAudioPlayer.swift index 43857289a..4412a0614 100644 --- a/Source/FolioReaderAudioPlayer.swift +++ b/Source/FolioReaderAudioPlayer.swift @@ -273,7 +273,7 @@ open class FolioReaderAudioPlayer: NSObject { updateNowPlayingInfo() } catch { - print("could not read audio file:", audioFile) + print("could not read audio file:", audioFile ?? "nil") return false } } diff --git a/Source/ScrollScrubber.swift b/Source/ScrollScrubber.swift index edba98c42..69fbcb704 100644 --- a/Source/ScrollScrubber.swift +++ b/Source/ScrollScrubber.swift @@ -205,8 +205,7 @@ class ScrollScrubber: NSObject, UIScrollViewDelegate { RunLoop.current.add(scrollDeltaTimer, forMode: RunLoopMode.commonModes) } - - func resetScrollDelta(){ + func resetScrollDelta() { if scrollDeltaTimer != nil { scrollDeltaTimer.invalidate() scrollDeltaTimer = nil @@ -217,7 +216,7 @@ class ScrollScrubber: NSObject, UIScrollViewDelegate { } - func setSliderVal(){ + func setSliderVal() { slider.value = Float(scrollTop() / height()) }