Skip to content

Commit 5dc596d

Browse files
committed
Include some whitespace after 'if' clauses.
1 parent 0f150ea commit 5dc596d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

libraries/rush-lib/src/cli/actions/ListAction.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ export class ListAction extends BaseRushAction {
127127
if (this._jsonFlag.value && this._detailedFlag.value) {
128128
throw new Error(`The parameters "--json" and "--detailed" cannot be used together.`);
129129
}
130+
130131
if (this._jsonFlag.value) {
131132
this._printJson(selection);
132133
} else if (this._version.value || this._path.value || this._fullPath.value || this._detailedFlag.value) {
@@ -149,9 +150,11 @@ export class ListAction extends BaseRushAction {
149150
} else {
150151
shouldPublish = config.shouldPublish;
151152
}
153+
152154
if (config.reviewCategory) {
153155
reviewCategory = config.reviewCategory;
154156
}
157+
155158
return {
156159
name: config.packageName,
157160
version: config.packageJson.version,
@@ -182,12 +185,15 @@ export class ListAction extends BaseRushAction {
182185
if (this._version.value || this._detailedFlag.value) {
183186
tableHeader.push('Version');
184187
}
188+
185189
if (this._path.value || this._detailedFlag.value) {
186190
tableHeader.push('Path');
187191
}
192+
188193
if (this._fullPath.value) {
189194
tableHeader.push('Full Path');
190195
}
196+
191197
if (this._detailedFlag.value) {
192198
tableHeader.push('Version policy');
193199
tableHeader.push('Version policy name');
@@ -212,12 +218,15 @@ export class ListAction extends BaseRushAction {
212218
if (this._version.value || this._detailedFlag.value) {
213219
appendToPackageRow(project.packageJson.version);
214220
}
221+
215222
if (this._path.value || this._detailedFlag.value) {
216223
appendToPackageRow(project.projectRelativeFolder);
217224
}
225+
218226
if (this._fullPath.value) {
219227
appendToPackageRow(project.projectFolder);
220228
}
229+
221230
if (this._detailedFlag.value) {
222231
// When we HAVE a version policy
223232
let versionPolicyDefinitionName: string = '';
@@ -232,9 +241,11 @@ export class ListAction extends BaseRushAction {
232241
} else {
233242
shouldPublish = `${String(project.shouldPublish)}`;
234243
}
244+
235245
if (project.reviewCategory) {
236246
reviewCategory = project.reviewCategory;
237247
}
248+
238249
appendToPackageRow(versionPolicyDefinitionName);
239250
appendToPackageRow(versionPolicyName);
240251
appendToPackageRow(shouldPublish);
@@ -244,6 +255,7 @@ export class ListAction extends BaseRushAction {
244255

245256
table.push(packageRow);
246257
}
258+
247259
console.log(table.toString());
248260
}
249261
}

0 commit comments

Comments
 (0)