Skip to content

Commit

Permalink
Simplified code in DAO, changes to Git Functions (#1174)
Browse files Browse the repository at this point in the history
* Simplified code in DAO, changes to Git Functions

* fixed append i +1 issue
  • Loading branch information
yashasvi128 authored and Orbiter committed Oct 30, 2018
1 parent 34b6981 commit e87cfec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ai/susi/DAO.java
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ public static Map<String, Draft> readDrafts(@Nonnull final ClientIdentity identi
Map<String, Draft> r = new HashMap<>();
if (d == null) return r;
if (ids.length == 0) {
d.forEach((id, draft) -> r.put(id, draft));
d.forEach(r::put);
return r;
}
for (String id: ids) if (d.containsKey(id)) r.put(id, d.get(id));
Expand All @@ -704,7 +704,6 @@ public static void deleteDraft(@Nonnull final ClientIdentity identity, final Str
if (d != null) d.remove(id);
}


public static JSONObject getSkillRating(String model, String group, String language, String skillname) {
// rating
JsonTray skillRating = DAO.skillRating;
Expand Down

0 comments on commit e87cfec

Please sign in to comment.