Skip to content

Commit

Permalink
refactor: rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyoucao577 committed Feb 25, 2020
1 parent fffa2cf commit daf996e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions integration/pkg/trafficproxyclient/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ func GetFlowsIncidents(wayIDs []int64) (*trafficproxy.TrafficResponse, error) {
req.TrafficSource = params{}.newTrafficSource()
req.TrafficType = params{}.newTrafficType()
if len(wayIDs) > 0 {
var trafficWayIdsRequest trafficproxy.TrafficRequest_TrafficWayIDsRequest
trafficWayIdsRequest.TrafficWayIDsRequest = new(trafficproxy.TrafficWayIDsRequest)
trafficWayIdsRequest.TrafficWayIDsRequest.WayIDs = wayIDs
req.RequestOneof = &trafficWayIdsRequest
var trafficWayIDsRequest trafficproxy.TrafficRequest_TrafficWayIDsRequest
trafficWayIDsRequest.TrafficWayIDsRequest = new(trafficproxy.TrafficWayIDsRequest)
trafficWayIDsRequest.TrafficWayIDsRequest.WayIDs = wayIDs
req.RequestOneof = &trafficWayIDsRequest
} else {
trafficAllRequest := new(trafficproxy.TrafficRequest_TrafficAllRequest)
trafficAllRequest.TrafficAllRequest = new(trafficproxy.TrafficAllRequest)
Expand Down

0 comments on commit daf996e

Please sign in to comment.