diff --git a/lib/allure_report_publisher/lib/uploaders/_uploader.rb b/lib/allure_report_publisher/lib/uploaders/_uploader.rb index f385e06f..3464b3ba 100644 --- a/lib/allure_report_publisher/lib/uploaders/_uploader.rb +++ b/lib/allure_report_publisher/lib/uploaders/_uploader.rb @@ -148,9 +148,7 @@ def add_history def add_executor_info return unless ci_provider - File.open("#{results_path}/#{EXECUTOR_JSON}", "w") do |file| - file.write(ci_provider.executor_info.to_json) - end + File.write("#{results_path}/#{EXECUTOR_JSON}", ci_provider.executor_info.to_json) end # Run upload commands