From a1f5a662b6ee8e6d5be96e55fbbb36f6d110567e Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 1 Jan 2020 09:05:53 -0800 Subject: Fixup a few codacy complaints. --- src/supplemental/http/http_client.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/supplemental/http') 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. +// Copyright 2020 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // Copyright 2019 Devolutions // @@ -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); -- cgit v1.2.3-70-g09d2