cleanup code

This commit is contained in:
tzw
2024-01-23 16:28:08 +06:30
parent a1e87cdbf6
commit f3f75a80c6
96 changed files with 232 additions and 439 deletions

View File

@@ -57,7 +57,7 @@ class PackageDataProvider {
}
Future<List<Package>?> ftsSearchPackage(String term) async {
if (term == null || term == '') return [];
if (term == '') return [];
var bytes = utf8.encode(term);
var base64Str = base64.encode(bytes);
@@ -86,8 +86,7 @@ class PackageDataProvider {
}
Future<List<Package>> searchPackage(String term) async {
if (term == null || term == '') return [];
if (term == '') return [];
List<Package> packages = [];
try {