Skip to content

Commit 96c9668

Browse files
committed
Analysis: Resolve name shadowed warning
Warning Message: "Name shadowed: start"
1 parent 1e7f4a9 commit 96c9668

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/spans/AztecOrderedListSpan.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ open class AztecOrderedListSpan(
8383
p.color = listStyle.indicatorColor
8484
p.style = Paint.Style.FILL
8585

86-
val start = if (attributes.hasAttribute("start") == true) {
86+
val startAttribute = if (attributes.hasAttribute("start") == true) {
8787
attributes.getValue("start").toInt()
8888
} else {
8989
0
@@ -92,9 +92,9 @@ open class AztecOrderedListSpan(
9292
var textToDraw = ""
9393
getIndexOfProcessedLine(text, end)?.let {
9494
val isReversed = attributes.hasAttribute("reversed")
95-
val lineIndex = if (start > 0) {
96-
if (isReversed) start - (it - 1)
97-
else start + (it - 1)
95+
val lineIndex = if (startAttribute > 0) {
96+
if (isReversed) startAttribute - (it - 1)
97+
else startAttribute + (it - 1)
9898
} else {
9999
val number = getNumberOfItemsInProcessedLine(text)
100100
if (isReversed) number - (it - 1)

0 commit comments

Comments
 (0)