Skip to content

Commit 737bc8c

Browse files
committed
Remove unnecessary non-null assertion
1 parent afd5397 commit 737bc8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/info/appdev/chartexample/RealtimeLineChartActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class RealtimeLineChartActivity : DemoBase(), OnChartValueSelectedListener {
9292
data.addDataSet(set)
9393
}
9494

95-
val cycleValue = (set!!.entryCount % 100.0).toInt()
95+
val cycleValue = (set.entryCount % 100.0).toInt()
9696
data.addEntry(EntryFloat(set.entryCount.toFloat(), (sampleValues[cycleValue]!!.toFloat() * 40) + 30f), 0)
9797
data.notifyDataChanged()
9898

0 commit comments

Comments
 (0)