Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Commit

Permalink
Make sure we don't end in an infinite loop while comparing versions
Browse files Browse the repository at this point in the history
  • Loading branch information
magopian committed Aug 16, 2017
1 parent 1483d01 commit 6bfbcc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const sortVersions = filters => {
return 1;
}
let i = 0;
while (partsA[i] === partsB[i]) { // Skip all the parts that are equal.
while ((partsA[i] === partsB[i]) && (i <= partsA.length)) { // Skip all the parts that are equal.
i++
}
if (!partsA[i] || !partsB[i]) {
Expand Down

0 comments on commit 6bfbcc1

Please sign in to comment.