Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
Fixed project warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hebertialmeida committed Jan 10, 2017
1 parent d58851e commit 9b6e8b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Source/FolioReaderAudioPlayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
5 changes: 2 additions & 3 deletions Source/ScrollScrubber.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -217,7 +216,7 @@ class ScrollScrubber: NSObject, UIScrollViewDelegate {
}


func setSliderVal(){
func setSliderVal() {
slider.value = Float(scrollTop() / height())
}

Expand Down

0 comments on commit 9b6e8b4

Please sign in to comment.