From: Thomas Lamprecht Date: Thu, 18 Mar 2021 16:02:02 +0000 (+0100) Subject: api: certs: drop unused variable X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=6694a1595c0f2992f66cbf91772672017105ee29;p=pmg-api.git api: certs: drop unused variable commit 1ecf138e1729dee908431673b73ac5baf8fd35a9 forgot to remove the variable it changes made useless Signed-off-by: Thomas Lamprecht --- diff --git a/src/PMG/API2/Certificates.pm b/src/PMG/API2/Certificates.pm index 1a7ded6..c08deb6 100644 --- a/src/PMG/API2/Certificates.pm +++ b/src/PMG/API2/Certificates.pm @@ -69,11 +69,12 @@ my sub set_smtp : prototype($$) { my $code = sub { my $cfg = PMG::Config->new(); + # check if value actually would change if (!$cfg->get('mail', 'tls') != !$on) { print "Rewriting postfix config\n"; $cfg->set('mail', 'tls', $on); $cfg->write(); - my $changed = $cfg->rewrite_config_postfix(); + $cfg->rewrite_config_postfix(); } if ($reload) {