Drop unnecessary elses after returns

This commit is contained in:
Daniel Martí 2016-02-09 15:58:47 +00:00
parent 9997b0f448
commit 401a1d473d
2 changed files with 7 additions and 9 deletions

View File

@ -546,13 +546,12 @@ public class AppProvider extends FDroidProvider {
if (TextUtils.isEmpty(query)) {
// Return all the things for an empty search.
return getContentUri();
} else {
}
return getContentUri().buildUpon()
.appendPath(PATH_SEARCH)
.appendPath(query)
.build();
}
}
public static Uri getSearchInstalledUri(String query) {
return getContentUri()

View File

@ -199,12 +199,11 @@ public abstract class AppListFragment extends ListFragment implements
onSearchStopped();
setEmptyText(getEmptyMessage());
return false;
} else {
}
onSearch();
setEmptyText(getNoSearchResultsMessage());
return true;
}
}
public void updateSearchQuery(@Nullable String query) {
if (!TextUtils.equals(query, searchQuery)) {