aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental/http/http_client.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2020-01-01 09:05:53 -0800
committerGarrett D'Amore <garrett@damore.org>2020-01-01 09:05:53 -0800
commita1f5a662b6ee8e6d5be96e55fbbb36f6d110567e (patch)
tree7b73db0203c82500a7b4df4db0ea832935deb822 /src/supplemental/http/http_client.c
parenta693a53e2302fe9cc60c1b5d2bf59c42032b20a3 (diff)
downloadnng-a1f5a662b6ee8e6d5be96e55fbbb36f6d110567e.tar.gz
nng-a1f5a662b6ee8e6d5be96e55fbbb36f6d110567e.tar.bz2
nng-a1f5a662b6ee8e6d5be96e55fbbb36f6d110567e.zip
Fixup a few codacy complaints.
Diffstat (limited to 'src/supplemental/http/http_client.c')
-rw-r--r--src/supplemental/http/http_client.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/supplemental/http/http_client.c b/src/supplemental/http/http_client.c
index 50300846..3c60bd46 100644
--- a/src/supplemental/http/http_client.c
+++ b/src/supplemental/http/http_client.c
@@ -1,5 +1,5 @@
//
-// Copyright 2019 Staysail Systems, Inc. <info@staysail.tech>
+// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
// Copyright 2019 Devolutions <info@devolutions.net>
//
@@ -34,9 +34,7 @@ struct nng_http_client {
static void
http_dial_start(nni_http_client *c)
{
- nni_aio *aio;
-
- if ((aio = nni_list_first(&c->aios)) == NULL) {
+ if (nni_list_empty(&c->aios)) {
return;
}
nng_stream_dialer_dial(c->dialer, c->aio);