Skip to content

Commit

Permalink
Remove unused catch block for exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuvindu committed Jun 26, 2024
1 parent e54e0f7 commit 42baab8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions native/src/main/java/io/ballerina/lib/ldap/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ public static Object add(Environment env, BObject ldapClient, BString dN, BMap<B
ldapConnection.asyncAdd(addRequest, customAsyncResultListener);
} catch (LDAPException e) {
future.complete(Utils.createError(e.getMessage(), e));
} catch (Exception e) {
future.complete(Utils.createError(e.getMessage(), e));
}
return null;
}
Expand Down Expand Up @@ -154,8 +152,6 @@ public static Object delete(Environment env, BObject ldapClient, BString dN) {
ldapConnection.asyncDelete(new DeleteRequest(dN.getValue()), customAsyncResultListener);
} catch (LDAPException e) {
future.complete(Utils.createError(e.getMessage(), e));
} catch (Exception e) {
future.complete(Utils.createError(e.getMessage(), e));
}
return null;
}
Expand Down

0 comments on commit 42baab8

Please sign in to comment.