Skip to content

Commit

Permalink
feat: use read file content in storage
Browse files Browse the repository at this point in the history
  • Loading branch information
arifBurakDemiray committed Sep 21, 2023
1 parent 89e2a77 commit 8729c74
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,17 +305,15 @@ protected String readEventQueue() {
return "";
}

StringBuilder eventQueue = new StringBuilder();
try (BufferedReader reader = new BufferedReader(new FileReader(file))) {
String line;
while ((line = reader.readLine()) != null) {
eventQueue.append(line);
}
String eventQueue = "";

try {
eventQueue = Utils.readFileContent(file);
} catch (IOException e) {
// Handle the error if reading fails
L.e("[SDKStorage] Failed to read EQ from json file: " + e);
}

return eventQueue.toString();
return eventQueue;
}
}

0 comments on commit 8729c74

Please sign in to comment.