From ec8ad787df0423e268762af213ad16810763d372 Mon Sep 17 00:00:00 2001
From: Patrick Decat <pdecat@gmail.com>
Date: Thu, 27 Dec 2018 13:44:58 +0100
Subject: [PATCH] Let expander & flattener functions return empty array instead
 of nil

---
 azurerm/helpers/azure/app_insights.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/azurerm/helpers/azure/app_insights.go b/azurerm/helpers/azure/app_insights.go
index 3cc7833d77cc..21fb6944844a 100644
--- a/azurerm/helpers/azure/app_insights.go
+++ b/azurerm/helpers/azure/app_insights.go
@@ -9,7 +9,7 @@ import (
 
 func ExpandApplicationInsightsAPIKeyLinkedProperties(v *schema.Set, appInsightsId string) *[]string {
 	if v == nil {
-		return nil
+		return &[]string{}
 	}
 
 	result := make([]string, v.Len())
@@ -21,7 +21,7 @@ func ExpandApplicationInsightsAPIKeyLinkedProperties(v *schema.Set, appInsightsI
 
 func FlattenApplicationInsightsAPIKeyLinkedProperties(props *[]string) *[]string {
 	if props == nil {
-		return nil
+		return &[]string{}
 	}
 
 	result := make([]string, len(*props))