Ameba: Fix Lint/UnusedBlockArgument
This commit is contained in:
parent
636a6d0be2
commit
c8fb75e6fd
2 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@ struct YoutubeConnectionPool
|
||||||
@pool = build_pool()
|
@pool = build_pool()
|
||||||
end
|
end
|
||||||
|
|
||||||
def client(&block)
|
def client(&)
|
||||||
conn = pool.checkout
|
conn = pool.checkout
|
||||||
begin
|
begin
|
||||||
response = yield conn
|
response = yield conn
|
||||||
|
@ -69,7 +69,7 @@ def make_client(url : URI, region = nil, force_resolve : Bool = false)
|
||||||
return client
|
return client
|
||||||
end
|
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)
|
client = make_client(url, region, force_resolve)
|
||||||
begin
|
begin
|
||||||
yield client
|
yield client
|
||||||
|
|
|
@ -856,7 +856,7 @@ end
|
||||||
#
|
#
|
||||||
# This function yields the container so that items can be parsed separately.
|
# 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
|
if unpackaged_data = initial_data["contents"]?.try &.as_h
|
||||||
elsif unpackaged_data = initial_data["response"]?.try &.as_h
|
elsif unpackaged_data = initial_data["response"]?.try &.as_h
|
||||||
elsif unpackaged_data = initial_data.dig?("onResponseReceivedActions", 1).try &.as_h
|
elsif unpackaged_data = initial_data.dig?("onResponseReceivedActions", 1).try &.as_h
|
||||||
|
|
Loading…
Reference in a new issue