Skip to content

Commit

Permalink
refactor(android): Fixed code formatting to be consistent with existi…
Browse files Browse the repository at this point in the history
…ng format
  • Loading branch information
breautek committed Dec 28, 2024
1 parent 36dc7a8 commit 24aadd6
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/android/Capture.java
Original file line number Diff line number Diff line change
Expand Up @@ -417,19 +417,15 @@ public void onAudioActivityResult(Request req, Intent intent) {
while ((bytesRead = input.read(buffer)) != -1) {
output.write(buffer, 0, bytesRead);
}
}
catch (FileNotFoundException e) {
} catch (FileNotFoundException e) {
pendingRequests.resolveWithFailure(req, createErrorObject(CAPTURE_INTERNAL_ERR, "Error: Unable to read input audio: File not found"));
}
catch (IOException e) {
} catch (IOException e) {
pendingRequests.resolveWithFailure(req, createErrorObject(CAPTURE_INTERNAL_ERR, "Error: Unable to read input audio"));
}
finally {
} finally {
try {
if (output != null) output.close();
if (input != null) input.close();
}
catch (IOException ex) {
} catch (IOException ex) {
pendingRequests.resolveWithFailure(req, createErrorObject(CAPTURE_INTERNAL_ERR, "Error: Unable to copy input audio"));
}
}
Expand Down

0 comments on commit 24aadd6

Please sign in to comment.