Ameba: Fix Lint/UselessAssign (#4795)

Related to issue 2231
This commit is contained in:
Samantaz Fox
2024-08-11 13:38:29 +02:00
8 changed files with 6 additions and 12 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 || "")