summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsyeopite <syeopite@syeopite.dev>2024-07-24 19:59:20 -0700
committersyeopite <syeopite@syeopite.dev>2024-07-24 19:59:20 -0700
commitc8fb75e6fd314bc1241bf256a2b897d409f79f42 (patch)
tree2c9f9230d478e8244f28597b1a655d75048f3c71 /src
parent636a6d0be27cea0c0e255dfe2d0c367edc0a3fba (diff)
downloadinvidious-c8fb75e6fd314bc1241bf256a2b897d409f79f42.tar.gz
invidious-c8fb75e6fd314bc1241bf256a2b897d409f79f42.tar.bz2
invidious-c8fb75e6fd314bc1241bf256a2b897d409f79f42.zip
Ameba: Fix Lint/UnusedBlockArgument
Diffstat (limited to 'src')
-rw-r--r--src/invidious/yt_backend/connection_pool.cr4
-rw-r--r--src/invidious/yt_backend/extractors.cr2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/invidious/yt_backend/connection_pool.cr b/src/invidious/yt_backend/connection_pool.cr
index d3dbcc0e..0ac785e6 100644
--- a/src/invidious/yt_backend/connection_pool.cr
+++ b/src/invidious/yt_backend/connection_pool.cr
@@ -24,7 +24,7 @@ struct YoutubeConnectionPool
@pool = build_pool()
end
- def client(&block)
+ def client(&)
conn = pool.checkout
begin
response = yield conn
@@ -69,7 +69,7 @@ def make_client(url : URI, region = nil, force_resolve : Bool = false)
return client
end
-def make_client(url : URI, region = nil, force_resolve : Bool = false, &block)
+def make_client(url : URI, region = nil, force_resolve : Bool = false, &)
client = make_client(url, region, force_resolve)
begin
yield client
diff --git a/src/invidious/yt_backend/extractors.cr b/src/invidious/yt_backend/extractors.cr
index 0e72957e..57a5dc3d 100644
--- a/src/invidious/yt_backend/extractors.cr
+++ b/src/invidious/yt_backend/extractors.cr
@@ -856,7 +856,7 @@ end
#
# This function yields the container so that items can be parsed separately.
#
-def extract_items(initial_data : InitialData, &block)
+def extract_items(initial_data : InitialData, &)
if unpackaged_data = initial_data["contents"]?.try &.as_h
elsif unpackaged_data = initial_data["response"]?.try &.as_h
elsif unpackaged_data = initial_data.dig?("onResponseReceivedActions", 1).try &.as_h