Skip to content

Commit 94527ef

Browse files
committed
style: fix empty console log
1 parent 4c2547b commit 94527ef

10 files changed

Lines changed: 15 additions & 15 deletions

File tree

lib/commands/git/pre-commit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export default class extends Command {
183183

184184
utils.printLintReport( report );
185185

186-
console.log( "" );
186+
console.log();
187187

188188
if ( status >= 300 ) {
189189
throw result( [ 500, `Linter reported errors in staged files. Commit terminated.` ] );

lib/commands/log.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default class extends Command {
7070
}
7171

7272
// print report
73-
console.log( "" );
73+
console.log();
7474
console.log( changelog.createReport() );
7575
}
7676
}

lib/commands/package/update-localization.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default class extends Command {
3636
for ( let n = 0; n < packages.length; n++ ) {
3737
const pkg = packages[ n ];
3838

39-
if ( n ) console.log( "" );
39+
if ( n ) console.log();
4040

4141
console.log( `Package: ${ pkg.name }\n` );
4242

lib/commands/workspace/build-docs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default class extends Command {
6060
if ( !pkg.docs.isEnabled ) return result( 200 );
6161

6262
if ( this.#newLine ) {
63-
console.log( "" );
63+
console.log();
6464
}
6565
else {
6666
this.#newLine = true;

lib/commands/workspace/install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default class extends Command {
5252
if ( !pkg.config.scripts?.[ script ] ) return result( 200 );
5353

5454
if ( this.#newLine ) {
55-
console.log( "" );
55+
console.log();
5656
}
5757
else {
5858
this.#newLine = true;

lib/commands/workspace/release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default class extends Command {
5454
firstPackage = false;
5555
}
5656
else {
57-
console.log( "" );
57+
console.log();
5858
}
5959

6060
res = await release.run();

lib/commands/workspace/run-command.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ softvisio-cli workspace run-command -- npm outdated
7070
// private
7171
async #runCommand ( pkg ) {
7272
if ( this.#newLine ) {
73-
console.log( "" );
73+
console.log();
7474
}
7575
else {
7676
this.#newLine = true;

lib/commands/workspace/run-script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default class extends Command {
6767
if ( !pkg.config.scripts?.[ script ] ) return result( 200 );
6868

6969
if ( this.#newLine ) {
70-
console.log( "" );
70+
console.log();
7171
}
7272
else {
7373
this.#newLine = true;

lib/commands/workspace/update-dependencies.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export default class extends Command {
210210
"outdatedDependencies": res.data.dependencies,
211211
"logHeader": () => {
212212
if ( this.#newLine ) {
213-
console.log( "" );
213+
console.log();
214214
}
215215
else {
216216
this.#newLine = true;

lib/package/release.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,18 +108,18 @@ export default class Publish {
108108
: "";
109109

110110
console.log( this.#changelog.createReport() );
111-
console.log( "" );
111+
console.log();
112112

113113
console.log( `New version: ${ ansi.underline( this.#currentRelease.versionString ) }, tags: ${ this.#createTagsText() || "-" }` );
114114
console.log( `Previous version: ${ this.#changelog.previousRelease?.versionString || "-" }` );
115-
console.log( "" );
115+
console.log();
116116

117117
if ( subPackages.length ) {
118118
console.log( `Sub-packages found:` );
119119

120120
subPackages.forEach( pkg => console.log( " - " + _path.relative( this.#pkg.root, pkg.root ) ) );
121121

122-
console.log( "" );
122+
console.log();
123123
}
124124

125125
// confirm no changes
@@ -143,7 +143,7 @@ export default class Publish {
143143
if ( res !== "yes" ) return result( [ 400, "Terminated" ] );
144144
}
145145

146-
console.log( "" );
146+
console.log();
147147

148148
// run tests
149149
res = this.#pkg.test( { "log": true } );
@@ -317,7 +317,7 @@ export default class Publish {
317317

318318
var res;
319319

320-
console.log( "" );
320+
console.log();
321321

322322
res = await docs.build();
323323
if ( !res.ok ) return res;
@@ -399,7 +399,7 @@ export default class Publish {
399399
}
400400
}
401401

402-
console.log( "" );
402+
console.log();
403403

404404
break;
405405
}

0 commit comments

Comments
 (0)