Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Arnob kumar saha <[email protected]>
  • Loading branch information
ArnobKumarSaha committed Aug 20, 2024
1 parent c4f2aa5 commit 78d6538
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apis/engine/v1alpha1/elasticsearch_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (m *ElasticsearchConfiguration) SetDefaults() {

// If user doesn't specify the list of AllowedRoles
// It is set to "*" (allow all)
if m.AllowedRoles == nil || len(m.AllowedRoles) == 0 {
if m.AllowedRoles == nil {
m.AllowedRoles = []string{"*"}
}

Expand Down
2 changes: 1 addition & 1 deletion apis/engine/v1alpha1/mariadb_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (m *MariaDBConfiguration) SetDefaults() {

// If user doesn't specify the list of AllowedRoles
// It is set to "*" (allow all)
if m.AllowedRoles == nil || len(m.AllowedRoles) == 0 {
if m.AllowedRoles == nil {
m.AllowedRoles = []string{"*"}
}

Expand Down
2 changes: 1 addition & 1 deletion apis/engine/v1alpha1/mongo_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (m *MongoDBConfiguration) SetDefaults() {

// If user doesn't specify the list of AllowedRoles
// It is set to "*" (allow all)
if m.AllowedRoles == nil || len(m.AllowedRoles) == 0 {
if m.AllowedRoles == nil {
m.AllowedRoles = []string{"*"}
}

Expand Down
2 changes: 1 addition & 1 deletion apis/engine/v1alpha1/mysql_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (m *MySQLConfiguration) SetDefaults() {

// If user doesn't specify the list of AllowedRoles
// It is set to "*" (allow all)
if m.AllowedRoles == nil || len(m.AllowedRoles) == 0 {
if m.AllowedRoles == nil {
m.AllowedRoles = []string{"*"}
}

Expand Down
2 changes: 1 addition & 1 deletion apis/engine/v1alpha1/postgres_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (p *PostgresConfiguration) SetDefaults() {

// If user doesn't specify the list of AllowedRoles
// It is set to "*" (allow all)
if p.AllowedRoles == nil || len(p.AllowedRoles) == 0 {
if p.AllowedRoles == nil {
p.AllowedRoles = []string{"*"}
}

Expand Down
2 changes: 1 addition & 1 deletion apis/engine/v1alpha1/redis_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (r *RedisConfiguration) SetDefaults() {

// If user doesn't specify the list of AllowedRoles
// It is set to "*" (allow all)
if r.AllowedRoles == nil || len(r.AllowedRoles) == 0 {
if r.AllowedRoles == nil {
r.AllowedRoles = []string{"*"}
}

Expand Down

0 comments on commit 78d6538

Please sign in to comment.