Parcourir la source

add empty slice return

Stefan McShane il y a 3 ans
Parent
commit
c9aac43991
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      api/server/handlers/project_integration/list_aws.go

+ 1 - 1
api/server/handlers/project_integration/list_aws.go

@@ -74,7 +74,7 @@ func (p *ListAWSHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
 
 	if len(awsInts) == 0 {
 		// so that the datatype stays the same on all returns
-		p.WriteResult(w, r, []*types.AWSIntegration{})
+		p.WriteResult(w, r, []types.AWSIntegration{})
 		return
 	}