提交 dc621da3 编写于 作者: D Daniel Gustafsson 提交者: Francisco Guerrero

Remove superfluous NULL check

The curl slist API properly handle NULLs so we can be less verbose
and skip the check before passing to the slist cleanup function.
Reviewed-by: NFrancisco Guerrero <aguerrero@pivotal.io>
上级 46a0915d
......@@ -296,9 +296,7 @@ churl_headers_cleanup(CHURL_HEADERS headers)
if (!settings)
return;
if (settings->headers)
curl_slist_free_all(settings->headers);
curl_slist_free_all(settings->headers);
pfree(settings);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册