Skip to content

Commit

Permalink
Fix: linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorporation committed May 29, 2024
1 parent 144ce47 commit bb72b43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lyrics/lyrics_generic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ local lyrics_found = 0
local lyrics_text
-- TODO: construct the uri to fetch the lyrics from
local lyrics_uri = ""
local rc, code, header, body = mympd.http_client("GET", lyrics_uri, "", "")
local code, header, body
rc, code, header, body = mympd.http_client("GET", lyrics_uri, "", "")
if rc == 0 and #body > 0 then
-- TODO: extract lyrics text from response
if lyrics_text then
Expand All @@ -34,7 +35,7 @@ local entry = {
text = lyrics_text
}
local result = {
data = { entry },
data = { entry },
totalEntities = 1,
returnedEntities = 1
}
Expand Down

0 comments on commit bb72b43

Please sign in to comment.