bintray: fix style

This commit is contained in:
Alexander Bayandin 2020-04-22 19:23:41 +01:00
parent fa18b44699
commit 28def587f0

View File

@ -68,7 +68,8 @@ class Bintray
begin begin
open_api url, "--silent", "--output", "/dev/null", auth: false open_api url, "--silent", "--output", "/dev/null", auth: false
rescue ErrorDuringExecution => e rescue ErrorDuringExecution => e
stderr = e.output.select { |type,| type == :stderr } stderr = e.output
.select { |type,| type == :stderr }
.map { |_, line| line } .map { |_, line| line }
.join .join
raise if e.status.exitstatus != 22 && !stderr.include?("404 Not Found") raise if e.status.exitstatus != 22 && !stderr.include?("404 Not Found")
@ -84,7 +85,8 @@ class Bintray
begin begin
curl "--silent", "--head", "--output", "/dev/null", url curl "--silent", "--head", "--output", "/dev/null", url
rescue ErrorDuringExecution => e rescue ErrorDuringExecution => e
stderr = e.output.select { |type,| type == :stderr } stderr = e.output
.select { |type,| type == :stderr }
.map { |_, line| line } .map { |_, line| line }
.join .join
raise if e.status.exitstatus != 22 && !stderr.include?("404 Not Found") raise if e.status.exitstatus != 22 && !stderr.include?("404 Not Found")