Skip to content

Commit

Permalink
linter (part 1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-Stam committed Feb 10, 2025
1 parent 20e2952 commit de68b5a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions qdrant/ref_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,3 @@ package qdrant
func newPointer[T any](value T) *T {
return &value
}

// Generic function to dereference a pointer with a default-value fallback.
func derefPointer[T any](ptr *T, defaults ...T) T {
if ptr != nil {
return *ptr
}
if len(defaults) > 0 {
return defaults[0]
}
var empty T
return empty
}
2 changes: 1 addition & 1 deletion qdrant/schemas_accounts_clusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ func flattenClusterConfiguration(clusterConfig *qcCluster.ClusterConfiguration)
}

// flattenNodeConfiguration creates a map from a packageID and additional resources for easy storage in Terraform.
// Note the TF structure is kept backwards compatible with the OpenAPI v1, so we need to map a bit here
// Note the TF structure is kept backwards compatible with the OpenAPI v1, so we need to map a bit here.
func flattenNodeConfiguration(packageID string, additionalResources *qcCluster.AdditionalResources) []interface{} {
return []interface{}{
map[string]interface{}{
Expand Down

0 comments on commit de68b5a

Please sign in to comment.