Skip to content

Commit

Permalink
Different for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
etrusci-org committed Jul 10, 2023
1 parent 1f9d1e1 commit 732cb1b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/mod/rotator.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@ export class Mod extends ModBase
update()
{
if (this.queue.length == 0) {
let dump = this.conf.items.split('|')

for (let k = 0; k < dump.length; k++) {
const item = String(dump[k]).trim();
if (item) {
this.queue.push(item)
for (const item of this.conf.items.split('|')) {
const value = item.trim()
if (value) {
this.queue.push(value)
}
}

Expand Down

0 comments on commit 732cb1b

Please sign in to comment.