Skip to content

Commit f03b457

Browse files
committed
Formatting fixes
1 parent 28c3b09 commit f03b457

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

src/chart/chart-scanner.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -455,23 +455,23 @@ function findChartIssues(
455455
}
456456
}
457457

458-
// brokenNote
459-
{
460-
for (let i = 1; i < track.noteEventGroups.length; i++) {
461-
const note = track.noteEventGroups[i]
462-
const previousNote = track.noteEventGroups[i - 1]
463-
const distance = note[0].msTime - previousNote[0].msTime
464-
if (distance > 0 && distance <= 15) {
465-
if (
466-
(typeCount(note, [noteTypes.open]) > 0 && typeCount(previousNote, [noteTypes.open]) === 0) ||
467-
(typeCount(note, [noteTypes.open]) === 0 && typeCount(previousNote, [noteTypes.open]) > 0)
468-
) {
469-
continue // Skip if non-open is next to an open
470-
}
471-
addIssue('brokenNote', track.noteEventGroups[i][0].msTime)
458+
// brokenNote
459+
{
460+
for (let i = 1; i < track.noteEventGroups.length; i++) {
461+
const note = track.noteEventGroups[i]
462+
const previousNote = track.noteEventGroups[i - 1]
463+
const distance = note[0].msTime - previousNote[0].msTime
464+
if (distance > 0 && distance <= 15) {
465+
if (
466+
(typeCount(note, [noteTypes.open]) > 0 && typeCount(previousNote, [noteTypes.open]) === 0) ||
467+
(typeCount(note, [noteTypes.open]) === 0 && typeCount(previousNote, [noteTypes.open]) > 0)
468+
) {
469+
continue // Skip if non-open is next to an open
472470
}
471+
addIssue('brokenNote', track.noteEventGroups[i][0].msTime)
473472
}
474473
}
474+
}
475475

476476
if (instrumentType !== instrumentTypes.drums) {
477477
// badSustainGap, babySustain

src/chart/notes-parser.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ function trimSustains(
190190
: 0
191191

192192
if (sustainThresholdTicks > 0) {
193-
for (const event of trackEvents) {
194-
if (event.length <= sustainThresholdTicks) {
195-
event.length = 0
193+
for (const event of trackEvents) {
194+
if (event.length <= sustainThresholdTicks) {
195+
event.length = 0
196196
}
197197
}
198198
}

0 commit comments

Comments
 (0)