Skip to content

Commit

Permalink
fix: remove unnecassary code
Browse files Browse the repository at this point in the history
  • Loading branch information
martinalbert committed Jan 16, 2024
1 parent 07abfc3 commit c730a6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/connector/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (d *Databricks) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error
// Validate is called to ensure that the connector is properly configured. It should exercise any API credentials
// to be sure that they are valid.
func (d *Databricks) Validate(ctx context.Context) (annotations.Annotations, error) {
_, _, err := d.client.ListUsers(ctx, &databricks.PaginationVars{Count: 1}, nil)
_, _, err := d.client.ListUsers(ctx, &databricks.PaginationVars{Count: 1})
if err != nil {
return nil, fmt.Errorf("databricks-connector: failed to validate client: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/connector/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func parsePageToken(i string, resourceID *v2.ResourceId) (*pagination.Bag, uint,

// convertPageToken converts a string token into an int.
func convertPageToken(token string) (uint, error) {
if token == "\x02" || token == "" {
if token == "" {
return 1, nil
}

Expand Down

0 comments on commit c730a6a

Please sign in to comment.