From 9fddeb1375bb365361d3f5148d92dfd584d5f409 Mon Sep 17 00:00:00 2001 From: Sam Miller Date: Thu, 19 Sep 2024 18:27:23 -0700 Subject: [PATCH] Fix ComposerDriver isInstalled falsy check --- src/Drivers/ComposerDriver.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Drivers/ComposerDriver.ts b/src/Drivers/ComposerDriver.ts index d07cfd3..abe55b9 100644 --- a/src/Drivers/ComposerDriver.ts +++ b/src/Drivers/ComposerDriver.ts @@ -28,9 +28,7 @@ export default class Composer implements IPhpUnitDriver { } public async isInstalled(): Promise { - return !!( - (await this.phpPath()) != null && (await this.phpUnitPath()) != null - ); + return !!((await this.phpPath()) && (await this.phpUnitPath())); } public async phpPath(): Promise {