Skip to content

Commit 0b43eea

Browse files
committed
Removed unnecessary ternary expression
1 parent 4e50305 commit 0b43eea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MPChartLib/src/com/github/mikephil/charting/utils/ViewPortHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ public void setDragOffsetY(float offset) {
667667
* @return
668668
*/
669669
public boolean hasNoDragOffset() {
670-
return mTransOffsetX <= 0 && mTransOffsetY <= 0 ? true : false;
670+
return mTransOffsetX <= 0 && mTransOffsetY <= 0;
671671
}
672672

673673
/**

0 commit comments

Comments
 (0)