From 10e7e8260b4d1840903786f2b9ece49df41416a6 Mon Sep 17 00:00:00 2001 From: Daniel Nalborczyk Date: Tue, 30 Aug 2022 21:32:30 -0400 Subject: [PATCH] refactor: simplify ruby runner --- src/lambda/handler-runner/ruby-runner/RubyRunner.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lambda/handler-runner/ruby-runner/RubyRunner.js b/src/lambda/handler-runner/ruby-runner/RubyRunner.js index 2c3c6452c..3d2902c9b 100644 --- a/src/lambda/handler-runner/ruby-runner/RubyRunner.js +++ b/src/lambda/handler-runner/ruby-runner/RubyRunner.js @@ -83,7 +83,7 @@ export default class RubyRunner { // console.log(input) - const ruby = execa( + const { stderr, stdout } = await execa( runtime, [ resolve(__dirname, 'invoke.rb'), @@ -97,10 +97,6 @@ export default class RubyRunner { }, ) - const result = await ruby - - const { stderr, stdout } = result - if (stderr) { // TODO