From b63deb0e83faf8ff9e905e2850d0c4d06f0715c2 Mon Sep 17 00:00:00 2001 From: Kamron Bhavnagri Date: Thu, 21 Apr 2022 23:20:15 +1000 Subject: [PATCH] Stop returning empty errors --- .../ankiconnectandroid/routing/AnkiAPIRouting.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app/src/main/java/com/kamwithk/ankiconnectandroid/routing/AnkiAPIRouting.java b/app/src/main/java/com/kamwithk/ankiconnectandroid/routing/AnkiAPIRouting.java index 55ba5fe..1f7d971 100644 --- a/app/src/main/java/com/kamwithk/ankiconnectandroid/routing/AnkiAPIRouting.java +++ b/app/src/main/java/com/kamwithk/ankiconnectandroid/routing/AnkiAPIRouting.java @@ -148,14 +148,6 @@ private String addNote(JsonObject raw_json) throws Exception { } private String storeMediaFile(JsonObject raw_json) throws Exception { - Map 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)); } } \ No newline at end of file