Commit 3a27a52a authored by hammad zafar's avatar hammad zafar
Browse files

fix the scope issue for responseData variable

parent f54318c3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -574,6 +574,8 @@ func predictedQosPost(w http.ResponseWriter, r *http.Request) {
		return
	}

	responseData := requestData // Both request and response have same data model

	for i, route := range requestData.Routes {
		if route.RouteInfo == nil {
			log.Error("Mandatory routeInfo parameter not present in routes")
@@ -614,8 +616,6 @@ func predictedQosPost(w http.ResponseWriter, r *http.Request) {
			})
		}

		responseData := requestData // Both request and response have same data model

		var geocoordinatesList gisClient.GeoCoordinateList
		geocoordinatesList.GeoCoordinates = geocoordinates
		powerResp, _, err := gisAppClient.GeospatialDataApi.GetGeoDataPowerValues(context.TODO(), geocoordinatesList)