Skip to content

Commit

Permalink
Refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
ravinperera00 committed Nov 18, 2024
1 parent 68c59e2 commit acd4120
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ public static Map<String, Object> getProperties(String resourceName) {
public static Object getResult(CompletableFuture<Object> balFuture) {
try {
return balFuture.get();
} catch (InterruptedException e) {
throw ErrorCreator.createError(e);
} catch (Throwable throwable) {
throw ErrorCreator.createError(throwable);

Check warning on line 71 in native/src/main/java/io/ballerina/stdlib/websocket/ModuleUtils.java

View check run for this annotation

Codecov / codecov/patch

native/src/main/java/io/ballerina/stdlib/websocket/ModuleUtils.java#L68-L71

Added lines #L68 - L71 were not covered by tests
}
Expand Down

0 comments on commit acd4120

Please sign in to comment.