Drop unnecessary elses after returns
This commit is contained in:
parent
a6e2aaabd8
commit
49e0561356
@ -61,9 +61,8 @@ public class LoggingQuery {
|
||||
logSlowQuery(queryDuration);
|
||||
}
|
||||
return cursor;
|
||||
} else {
|
||||
return db.rawQuery(query, queryArgs);
|
||||
}
|
||||
return db.rawQuery(query, queryArgs);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -147,9 +147,8 @@ abstract class QueryBuilder {
|
||||
private String orderBySql() {
|
||||
if (orderBys.size() == 0) {
|
||||
return "";
|
||||
} else {
|
||||
return " ORDER BY " + TextUtils.join(", ", orderBys);
|
||||
}
|
||||
return " ORDER BY " + TextUtils.join(", ", orderBys);
|
||||
}
|
||||
|
||||
private String groupBySql() {
|
||||
|
@ -91,16 +91,15 @@ public abstract class Installer {
|
||||
}
|
||||
|
||||
int count = newPermissionCount(apk);
|
||||
if (count > 0) {
|
||||
Uri uri = ApkProvider.getContentUri(apk);
|
||||
Intent intent = new Intent(context, InstallConfirmActivity.class);
|
||||
intent.setData(uri);
|
||||
|
||||
return intent;
|
||||
} else {
|
||||
if (count == 0) {
|
||||
// no permission screen needed!
|
||||
return null;
|
||||
}
|
||||
Uri uri = ApkProvider.getContentUri(apk);
|
||||
Intent intent = new Intent(context, InstallConfirmActivity.class);
|
||||
intent.setData(uri);
|
||||
|
||||
return intent;
|
||||
}
|
||||
|
||||
private int newPermissionCount(Apk apk) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user