esp_http_server: Run format.sh script to fix code style issues

This commit is contained in:
Shubham Kulkarni
2021-02-17 10:43:19 +05:30
committed by bot
parent 282726b619
commit 6a7587d35f
3 changed files with 87 additions and 89 deletions

View File

@@ -197,7 +197,7 @@ esp_err_t httpd_sess_new(struct httpd_data *hd, int newfd);
* @brief Processes incoming HTTP requests
*
* @param[in] hd Server instance data
* @param[in] session session
* @param[in] session Session
*
* @return
* - ESP_OK : on successfully receiving, parsing and responding to a request

View File

@@ -236,8 +236,7 @@ void httpd_sess_free_ctx(void **ctx, httpd_free_ctx_fn_t free_fn)
}
if (free_fn) {
free_fn(*ctx);
}
else {
} else {
free(*ctx);
}
*ctx = NULL;
@@ -366,8 +365,7 @@ void httpd_sess_delete(struct httpd_data *hd, struct sock_db *session)
// Call close function if defined
if (hd->config.close_fn) {
hd->config.close_fn(hd, session->fd);
}
else {
} else {
close(session->fd);
}