Skip to content

Commit

Permalink
refactor: remove nested ternary
Browse files Browse the repository at this point in the history
  • Loading branch information
iowillhoit committed Jan 3, 2023
1 parent b7f8802 commit 18f526d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/shared/localShadowRepo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ export class ShadowRepo {
this.packageDirs = options.packageDirs;
this.isWindows = os.type() === 'Windows_NT';

const batchSize = env.getNumber('SFDX_SOURCE_TRACKING_BATCH_SIZE');
this.maxFileAdd = batchSize ? batchSize : this.isWindows ? 8000 : 15000;
this.maxFileAdd = env.getNumber('SFDX_SOURCE_TRACKING_BATCH_SIZE', this.isWindows ? 8000 : 15000);
}

// think of singleton behavior but unique to the projectPath
Expand Down

0 comments on commit 18f526d

Please sign in to comment.