X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli/blobdiff_plain/29a566fada656091bf92456f6fb0f1bea5b6dca3..8c406cfb43a92d5fcfa522a6d8c579568a3a36cb:/Sources/lyrics_engine.swift diff --git a/Sources/lyrics_engine.swift b/Sources/lyrics_engine.swift index 85e4735..27e0e11 100644 --- a/Sources/lyrics_engine.swift +++ b/Sources/lyrics_engine.swift @@ -36,11 +36,9 @@ class LyricsEngine { // Call the API and unlock when you're done fetchLyricsFromAPI(withURL: url, completionHandler: {lyricsResult -> Void in - if let lyricsResult = lyricsResult { - lyrics = lyricsResult - requestFinished = true - asyncLock.signal() - } + lyrics = lyricsResult + requestFinished = true + asyncLock.signal() }) while !requestFinished {