Skip to content

Commit

Permalink
Fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
octogonz committed Jan 31, 2024
1 parent fc5fff0 commit 7a4d754
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion libraries/rush-lib/src/api/RushConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,10 @@ export class RushConfiguration {
const subspace: Subspace | undefined = this._subspacesByName.get(subspaceName);
if (!subspace) {
// If the name is not even valid, that is more important information than if the subspace doesn't exist
SubspacesConfiguration.requireValidSubspaceName(subspaceName, this.subspacesFeatureEnabled);
SubspacesConfiguration.requireValidSubspaceName(
subspaceName,
this.subspacesConfiguration?.splitWorkspaceCompatibility
);
}
return subspace;
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/rush-lib/src/api/SubspacesConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class SubspacesConfiguration {
this.preventSelectingAllSubspaces = !!configuration.preventSelectingAllSubspaces;
const subspaceNames: Set<string> = new Set();
for (const subspaceName of configuration.subspaceNames) {
SubspacesConfiguration.requireValidSubspaceName(subspaceName, this.subspacesEnabled);
SubspacesConfiguration.requireValidSubspaceName(subspaceName, this.splitWorkspaceCompatibility);

subspaceNames.add(subspaceName);
}
Expand Down

0 comments on commit 7a4d754

Please sign in to comment.