Skip to content

Commit

Permalink
refactor: simplify condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Jun 17, 2022
1 parent adc84a8 commit acdf1b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/_setupTeardown/npmInstall.js
Expand Up @@ -47,14 +47,17 @@ export default async function npmInstall() {

if (docker) {
env.DOCKER_DETECTED = true

const dockerCompose = await detectExecutable('docker-compose')

if (dockerCompose) {
env.DOCKER_COMPOSE_DETECTED = true
}
}

const go = await checkGoVersion()
if (go && go === '1.x') {

if (go === '1.x') {
env.GO1X_DETECTED = true
}

Expand Down

0 comments on commit acdf1b9

Please sign in to comment.