Skip to content

Commit b50e71d

Browse files
committed
Fix JS linter issue
1 parent 72fc93b commit b50e71d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

assets/js/web-components/prpl-guage-progress-controller.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,9 @@ class PrplGaugeProgressController {
287287

288288
// Fill progress bars in order
289289
for ( const bar of this.progressBars ) {
290-
if ( remaining <= 0 ) break;
290+
if ( remaining <= 0 ) {
291+
break;
292+
}
291293
const barSpace = parseInt( bar.maxPoints ) - this._barValue( bar );
292294

293295
const toBar = Math.min( remaining, barSpace );
@@ -313,7 +315,9 @@ class PrplGaugeProgressController {
313315

314316
// Decrease progress bars first, in reverse order
315317
for ( let i = this.progressBars.length - 1; i >= 0; i-- ) {
316-
if ( remaining <= 0 ) break;
318+
if ( remaining <= 0 ) {
319+
break;
320+
}
317321
const bar = this.progressBars[ i ];
318322
const barVal = this._barValue( bar );
319323
const fromBar = Math.min( remaining, barVal );

0 commit comments

Comments
 (0)