Skip to content

Commit

Permalink
refactor: simplify ruby runner
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Aug 31, 2022
1 parent b967b37 commit 10e7e82
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/lambda/handler-runner/ruby-runner/RubyRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default class RubyRunner {

// console.log(input)

const ruby = execa(
const { stderr, stdout } = await execa(
runtime,
[
resolve(__dirname, 'invoke.rb'),
Expand All @@ -97,10 +97,6 @@ export default class RubyRunner {
},
)

const result = await ruby

const { stderr, stdout } = result

if (stderr) {
// TODO

Expand Down

0 comments on commit 10e7e82

Please sign in to comment.