From 889258bdaa1fc9016bbae35c7eefc9e91e04509e Mon Sep 17 00:00:00 2001 From: Alex Kelly Date: Thu, 30 Sep 2021 12:45:12 -0400 Subject: [PATCH] fix: remove duplication of output --- checkcert/checkcert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkcert/checkcert.py b/checkcert/checkcert.py index 78f69b9..23d3192 100644 --- a/checkcert/checkcert.py +++ b/checkcert/checkcert.py @@ -113,8 +113,8 @@ def main(san, dump, expires, hosts): HOSTS.append((host_info[0], int(host_info[1]))) else: HOSTS.append((host, 443)) - output_string = "" for hostinfo in map(lambda x: get_certificate(x[0], x[1]), HOSTS): + output_string = "" if dump: print(get_x509_text(hostinfo.cert).decode()) else: