From 4940746bcba1ef50dec9add25cf231e8596407af Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Fri, 14 Jun 2019 10:15:10 +0200 Subject: [PATCH] Remove useless else The if-block ends with a return. --- .../java/com/genymobile/scrcpy/wrappers/SurfaceControl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/src/main/java/com/genymobile/scrcpy/wrappers/SurfaceControl.java b/server/src/main/java/com/genymobile/scrcpy/wrappers/SurfaceControl.java index 9f479f03..5b5586ff 100644 --- a/server/src/main/java/com/genymobile/scrcpy/wrappers/SurfaceControl.java +++ b/server/src/main/java/com/genymobile/scrcpy/wrappers/SurfaceControl.java @@ -82,9 +82,8 @@ public final class SurfaceControl { // if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) { return (IBinder) CLASS.getMethod("getBuiltInDisplay", int.class).invoke(null, builtInDisplayId); - } else { - return (IBinder) CLASS.getMethod("getPhysicalDisplayToken", long.class).invoke(null, builtInDisplayId); } + return (IBinder) CLASS.getMethod("getPhysicalDisplayToken", long.class).invoke(null, builtInDisplayId); } catch (Exception e) { throw new AssertionError(e); }