Skip to content

Commit bf0cb1d

Browse files
committed
Remove redundant assignment
1 parent 423d382 commit bf0cb1d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

web/src/routes/DiffSearch.svelte

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
async function prevResult() {
1818
const files = await viewer.searchResults;
1919
if (files.totalMatches === 0) {
20-
currentMatchIdx = -1;
2120
return;
2221
}
2322
const startIdx = currentMatchIdx == -1 ? 0 : currentMatchIdx;
@@ -29,7 +28,6 @@
2928
async function nextResult() {
3029
const files = await viewer.searchResults;
3130
if (files.totalMatches === 0) {
32-
currentMatchIdx = -1;
3331
return;
3432
}
3533
currentMatchIdx = (currentMatchIdx + 1) % files.totalMatches;

0 commit comments

Comments
 (0)