Skip to content

Commit

Permalink
fixup! Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 authored Dec 6, 2022
1 parent 87ebd7c commit b89b383
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/drivers/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class Github {
'--work',
resolve(workdir, '_work'),
// adds `--ephemeral` to the array only if `single` is set
...(single && ['--ephemeral'])
...(single ? ['--ephemeral'] : [])
);

return spawn(resolve(workdir, 'run.sh'), {
Expand Down
2 changes: 1 addition & 1 deletion src/terraform.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const destroy = async (opts = {}) => {
dir,
'destroy',
'-auto-approve',
...(target && ['-target', target])
...(target ? ['-target', target] : [])
);
};

Expand Down

2 comments on commit b89b383

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

Please sign in to comment.