Ameba: Fix Lint/UselessAssign

This commit is contained in:
syeopite
2024-07-17 12:39:40 -07:00
parent bad92093bf
commit fad0a4f52d
9 changed files with 7 additions and 13 deletions

View File

@@ -394,10 +394,6 @@ end
def fetch_video(id, region)
info = extract_video_info(video_id: id)
allowed_regions = info
.dig?("microformat", "playerMicroformatRenderer", "availableCountries")
.try &.as_a.map &.as_s || [] of String
if reason = info["reason"]?
if reason == "Video unavailable"
raise NotFoundException.new(reason.as_s || "")