5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 07:41:41 +00:00

fix: quitado espacio sobrante en array #14550
All checks were successful
ci/woodpecker/push/woodpecker/1 Pipeline was successful
ci/woodpecker/push/woodpecker/2 Pipeline was successful

This commit is contained in:
jazzari 2024-01-10 15:36:02 -03:00
parent c66a7660c1
commit 3d86ad1fbe

View file

@ -87,7 +87,7 @@ class DeployDistributedPress < Deploy
# @return [Array] # @return [Array]
def gateway_urls def gateway_urls
remote_info.dig(:distributed_press, :links)&.values&.map do |protocol| remote_info.dig(:distributed_press, :links)&.values&.map do |protocol|
[ protocol[:link]] [protocol[:link]]
end&.flatten&.compact&.select do |link| end&.flatten&.compact&.select do |link|
link.include? '://' link.include? '://'
end || [] end || []