Skip to content

Commit

Permalink
Small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRahulSharma committed Aug 28, 2023
1 parent 339807e commit 7b2bb13
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ public void test(ConnectorContext context) throws ValidationException {

@Override
public BrowseDetail browse(ConnectorContext connectorContext, BrowseRequest request) throws IOException {
return this.browse(request);
}

public BrowseDetail browse(BrowseRequest request) throws IOException {
DBConnectorPath dbConnectorPath = getDBConnectorPath(request.getPath());
try (Connection connection = getConnection(dbConnectorPath)) {
int limit = request.getLimit() == null || request.getLimit() <= 0 ? Integer.MAX_VALUE : request.getLimit();
Expand Down

0 comments on commit 7b2bb13

Please sign in to comment.