Commit ae76ae40 authored by topjohnwu's avatar topjohnwu

Prevent incorrect repo

parent 9614ec4c
...@@ -92,10 +92,12 @@ public class ModuleHelper { ...@@ -92,10 +92,12 @@ public class ModuleHelper {
Repo repo = cached.get(id); Repo repo = cached.get(id);
if (repo == null) { if (repo == null) {
Logger.dev("ModuleHelper: Create new repo " + id); Logger.dev("ModuleHelper: Create new repo " + id);
repoMap.put(id, new Repo(context, name, updatedDate)); repo = new Repo(context, name, updatedDate);
} else { } else {
Logger.dev("ModuleHelper: Cached repo " + id); Logger.dev("ModuleHelper: Cached repo " + id);
repo.update(updatedDate); repo.update(updatedDate);
}
if (repo.getId() != null) {
repoMap.put(id, repo); repoMap.put(id, repo);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment