Skip to content

Commit

Permalink
filter nil (#6916)
Browse files Browse the repository at this point in the history
Co-authored-by: Edward Sun <sunedward@google.com>
  • Loading branch information
edwardmedia and Edward Sun authored Dec 6, 2022
1 parent 5528753 commit 0042aba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1784,7 +1784,7 @@ func expandComposerEnvironmentConfigNodeConfig(v interface{}, d *schema.Resource

func expandComposerEnvironmentIPAllocationPolicy(v interface{}, d *schema.ResourceData, config *Config) (*composer.IPAllocationPolicy, error) {
l := v.([]interface{})
if len(l) == 0 {
if len(l) == 0 || l[0] == nil {
return nil, nil
}
raw := l[0]
Expand Down

0 comments on commit 0042aba

Please sign in to comment.