X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli/blobdiff_plain/d852b84edc24f1f1bbf4c34aa359447970e732b0..4c5df35e2af0d6c048e9b366d50ef740cfe0a728:/Sources/lyrics_engine.swift?ds=inline 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 {