From 6d0f271dc326624ade4c1d982181a1126f54589d Mon Sep 17 00:00:00 2001 From: Enoyao Date: Thu, 31 Mar 2022 21:54:24 +0800 Subject: [PATCH] fix: remove redundant code (#9599) --- packages/nx/src/command-line/run-one.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/nx/src/command-line/run-one.ts b/packages/nx/src/command-line/run-one.ts index 0e80e0b9bb0a1..11c2cf4231dae 100644 --- a/packages/nx/src/command-line/run-one.ts +++ b/packages/nx/src/command-line/run-one.ts @@ -153,8 +153,6 @@ function calculateDefaultProjectName( } return ( (workspaceConfiguration.cli as { defaultProjectName: string }) - ?.defaultProjectName || - workspaceConfiguration.defaultProject || - workspaceConfiguration.defaultProject + ?.defaultProjectName || workspaceConfiguration.defaultProject ); }