Skip to content

Commit 129ad15

Browse files
authored
Merge pull request #2187 from vpop/update/redundant-nullcheck
Remove nullcheck for known non-null variable
2 parents 5030b36 + e5d03ba commit 129ad15

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

MPChartLib/src/main/java/com/github/mikephil/charting/components/MarkerImage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ public void draw(Canvas canvas, float posX, float posY) {
142142
float width = mSize.width;
143143
float height = mSize.height;
144144

145-
if (width == 0.f && mDrawable != null) {
145+
if (width == 0.f) {
146146
width = mDrawable.getIntrinsicWidth();
147147
}
148-
if (height == 0.f && mDrawable != null) {
148+
if (height == 0.f) {
149149
height = mDrawable.getIntrinsicHeight();
150150
}
151151

0 commit comments

Comments
 (0)