Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: relic locator #545

Merged
merged 23 commits into from
Sep 10, 2024
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: remove useless arr.reverse()
  • Loading branch information
FI00ds committed Aug 31, 2024
commit a910221fd88380db8ed3545a405b07ba56cb9640
7 changes: 3 additions & 4 deletions src/lib/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -1032,9 +1032,8 @@ function deduplicateArray(arr) {
}

function IndexRelics(arr) {
arr.reverse()
for (let i = arr.length - 1; i >= 0; i--) {
arr[i].ageIndex = i
const length = arr.length
for (let i = 0; i < length; i++) {
arr[i].ageIndex = length - i - 1
}
arr.reverse()
}