Skip to content

Commit 670863a

Browse files
committed
remove useless try catch.
1 parent feafd6a commit 670863a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

library/src/main/java/com/daimajia/swipe/SwipeLayout.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,12 +1199,7 @@ public Status getOpenStatus() {
11991199
protected void processHandRelease(float xvel, float yvel, boolean isCloseBeforeDragged) {
12001200
float minVelocity = mDragHelper.getMinVelocity();
12011201
View surfaceView = getSurfaceView();
1202-
DragEdge currentDragEdge = null;
1203-
try {
1204-
currentDragEdge = mCurrentDragEdge;
1205-
} catch (Exception e) {
1206-
e.printStackTrace();
1207-
}
1202+
DragEdge currentDragEdge = mCurrentDragEdge;
12081203
if(currentDragEdge == null || surfaceView == null){
12091204
return;
12101205
}

0 commit comments

Comments
 (0)