Fix 'Lint/UselessAssign' warnings reported by ameba

This commit is contained in:
Samantaz Fox
2022-01-20 20:29:14 +01:00
parent 46f7ca9ffa
commit 971b6ec96f
3 changed files with 5 additions and 12 deletions

View File

@@ -93,10 +93,6 @@ def fetch_youtube_comments(id, cursor, format, locale, thin_mode, region, sort_b
end
contents = body["contents"]?
header = body["header"]?
if body["continuations"]?
# Removable? Doesn't seem like this is used.
more_replies_continuation = body["continuations"][0]["nextContinuationData"]["continuation"].as_s
end
else
raise InfoException.new("Could not fetch comments")
end