Fixed unused array
This commit is contained in:
parent
fbfe84fa52
commit
3c996a41a9
1 changed files with 17 additions and 16 deletions
|
@ -362,7 +362,7 @@ public class TravelDbHelper {
|
|||
cursor.close();
|
||||
}
|
||||
LinkedHashMap<WikivoyageSearchResult, List<WikivoyageSearchResult>> res = new LinkedHashMap<>();
|
||||
parts = parts == null ? new String[]{} : parts;
|
||||
if (parts != null) {
|
||||
for (String header : parts) {
|
||||
WikivoyageSearchResult searchResult = headerObjs.get(header);
|
||||
List<WikivoyageSearchResult> results = navMap.get(header);
|
||||
|
@ -380,6 +380,7 @@ public class TravelDbHelper {
|
|||
res.put(searchResult, results);
|
||||
}
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue