Skip to content

Commit ccbc2c7

Browse files
author
Kevin Li
committed
Code Formatting Fix
1 parent 295add4 commit ccbc2c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apirunner/apirunner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,10 @@ func executeAPI(apiURL string, params url.Values, post bool) (float64, float64,
257257
// Send the API request and calculate the time
258258
var resp *http.Response
259259
var err error
260-
dataBody := strings.NewReader(params.Encode())
261260
log.Infof("Running the API %s", apiURL)
262261
start := time.Now()
263262
if post {
263+
dataBody := strings.NewReader(params.Encode())
264264
resp, err = http.Post(
265265
apiURL,
266266
"application/x-www-form-urlencoded",

0 commit comments

Comments
 (0)