fix(static_controller): return body nil when 500

Fix deprecation warning from nothing.
This commit is contained in:
Luis Castro 2019-07-14 10:50:27 +02:00
parent 22bf0713f9
commit a20bd477ce
No known key found for this signature in database
GPG key ID: 0A8F33D4C4E27639

View file

@ -14,7 +14,7 @@ class StaticController < ApplicationController
if result
send_file(temp_file, :type => "application/gzip")
else
render :nothing => true, :status => 500
render body: nil, status: 500
end
elsif (ccs_method == 'github')
git_hash = File.read("#{Rails.root}/CCS_HASH")