Explorar el Código

add empty slice return

Stefan McShane hace 3 años
padre
commit
c9aac43991
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 {
 	if len(awsInts) == 0 {
 		// so that the datatype stays the same on all returns
 		// so that the datatype stays the same on all returns
-		p.WriteResult(w, r, []*types.AWSIntegration{})
+		p.WriteResult(w, r, []types.AWSIntegration{})
 		return
 		return
 	}
 	}