Skip to content

Commit

Permalink
Remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
kobajagi committed Sep 23, 2024
1 parent f8434f6 commit 1d7e3b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resources/database/resource_opensearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ func (r *Resource) updateOpensearch(ctx context.Context, stateData *ResourceMode
updated = true
}

if planData.Opensearch.IndexPatterns != nil && len(planData.Opensearch.IndexPatterns) > 0 {
if len(planData.Opensearch.IndexPatterns) > 0 {
patterns := []struct {
MaxIndexCount *int64 `json:"max-index-count,omitempty"`
Pattern *string `json:"pattern,omitempty"`
Expand Down

0 comments on commit 1d7e3b2

Please sign in to comment.