From 8ddb67d8c6719354c6370cf065a1baf032b08d57 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sun, 26 Feb 2023 11:13:08 +1100 Subject: [PATCH] fix return --- lib/adamantium/client/mastodon.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/adamantium/client/mastodon.rb b/lib/adamantium/client/mastodon.rb index bcb1bcf..b921186 100644 --- a/lib/adamantium/client/mastodon.rb +++ b/lib/adamantium/client/mastodon.rb @@ -57,7 +57,7 @@ module Adamantium file_size = file.size.to_f / 2**20 formatted_file_size = "%.2f" % file_size - next if formatted_file_size > 2.0 + return if formatted_file_size > 2.0 response = HTTParty.post("#{mastodon_server}api/v2/media", { headers: {