Skip to content

Commit

Permalink
sonar issue cleared
Browse files Browse the repository at this point in the history
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
  • Loading branch information
K0zka committed Feb 10, 2024
1 parent c6e0aa2 commit c6b90ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ internal class SortedList<T>(private val comparator: Comparator<T>) {
first = Node(element, first)
else -> {
var seek = first!!
while (seek.next != null && seek!!.next!!.item.isGreaterThan(element, comparator)) {
while (seek.next != null && seek.next!!.item.isGreaterThan(element, comparator)) {
seek = seek.next!!
}
seek.next = Node(element, seek.next)
Expand Down

0 comments on commit c6b90ff

Please sign in to comment.