mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
Documentation: don't resort versions
Array.sort() mutates the array _and_ returns it; don't mutate the version array.
This commit is contained in:
@@ -1264,8 +1264,7 @@ async function produceSearch(versions) {
|
||||
}
|
||||
|
||||
async function produceMainIndex(versions) {
|
||||
const versionList = versions.sort(versionSort);
|
||||
const versionDefault = versionList[versionList.length - 1];
|
||||
const versionDefault = versions[0];
|
||||
|
||||
if (options.verbose) {
|
||||
console.log(`Producing documentation index...`);
|
||||
|
||||
Reference in New Issue
Block a user