From 9cbefca4bb12b9278648af5c24d5b98c92d25dd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Fri, 11 Sep 2015 15:34:05 -0700 Subject: [PATCH] Code cleanup via AS --- .../src/org/fdroid/fdroid/net/bluetooth/httpish/Request.java | 2 +- .../fdroid/privileged/views/AppSecurityPermissions.java | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/F-Droid/src/org/fdroid/fdroid/net/bluetooth/httpish/Request.java b/F-Droid/src/org/fdroid/fdroid/net/bluetooth/httpish/Request.java index 7a3f8697e..40e097ebe 100644 --- a/F-Droid/src/org/fdroid/fdroid/net/bluetooth/httpish/Request.java +++ b/F-Droid/src/org/fdroid/fdroid/net/bluetooth/httpish/Request.java @@ -159,7 +159,7 @@ public class Request { } try { Thread.sleep(100); } - catch (Exception e){}; + catch (Exception e){} } return line; diff --git a/F-Droid/src/org/fdroid/fdroid/privileged/views/AppSecurityPermissions.java b/F-Droid/src/org/fdroid/fdroid/privileged/views/AppSecurityPermissions.java index c6754b71c..83864dc15 100644 --- a/F-Droid/src/org/fdroid/fdroid/privileged/views/AppSecurityPermissions.java +++ b/F-Droid/src/org/fdroid/fdroid/privileged/views/AppSecurityPermissions.java @@ -453,10 +453,7 @@ public class AppSecurityPermissions { // Development permissions are only shown to the user if they are already // granted to the app -- if we are installing an app and they are not // already granted, they will not be granted as part of the install. - if (isDevelopment && wasGranted) { - return true; - } - return false; + return isDevelopment && wasGranted; } private static class PermissionGroupInfoComparator implements Comparator {