mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Cleanup ameba warnings (#551)
This commit is contained in:
parent
740cb188a9
commit
c893172fbf
5 changed files with 7 additions and 36 deletions
|
@ -70,7 +70,7 @@ describe "Macros" do
|
|||
halt env, status_code: 400, response: "Missing origin."
|
||||
end
|
||||
|
||||
get "/" do |env|
|
||||
get "/" do |_env|
|
||||
"Hello world"
|
||||
end
|
||||
|
||||
|
|
|
@ -6,12 +6,10 @@ private def run(code)
|
|||
#{code}
|
||||
CR
|
||||
String.build do |stdout|
|
||||
stderr = String.build do |stderr|
|
||||
Process.new("crystal", ["eval"], input: IO::Memory.new(code), output: stdout, error: stderr).wait
|
||||
end
|
||||
unless stderr.empty?
|
||||
fail(stderr)
|
||||
stderr = String.build do |io|
|
||||
Process.new("crystal", ["eval"], input: IO::Memory.new(code), output: stdout, error: io).wait
|
||||
end
|
||||
fail(stderr) unless stderr.empty?
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue