Skip to content

Commit

Permalink
Stop returning empty errors
Browse files Browse the repository at this point in the history
  • Loading branch information
KamWithK committed Apr 21, 2022
1 parent 5770be6 commit b63deb0
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,6 @@ private String addNote(JsonObject raw_json) throws Exception {
}

private String storeMediaFile(JsonObject raw_json) throws Exception {
Map<String, String> response = new HashMap<>();

response.put("result", integratedAPI.storeMediaFile(
Parser.getMediaFilename(raw_json),
Parser.getMediaData(raw_json)
));
response.put("error", null);

return Parser.gson.toJson(response);
return Parser.gson.toJson(Parser.getMediaFilename(raw_json));
}
}

0 comments on commit b63deb0

Please # to comment.