Skip to content

Commit 1de213f

Browse files
committed
Simplify get LineChart lineData
1 parent 89da455 commit 1de213f

File tree

1 file changed

+2
-4
lines changed
  • MPChartLib/src/main/java/com/github/mikephil/charting/charts

1 file changed

+2
-4
lines changed

MPChartLib/src/main/java/com/github/mikephil/charting/charts/LineChart.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ open class LineChart : BarLineChartBase<LineData?>, LineDataProvider {
2020

2121
override val lineData: LineData
2222
get() {
23-
mData?.let {
24-
return it
25-
} ?: run {
26-
return LineData()
23+
return mData ?: run {
24+
LineData()
2725
}
2826
}
2927

0 commit comments

Comments
 (0)