]> git.proxmox.com Git - pmg-api.git/commit
ruledb disclaimer: if/elsif code cleanup
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 9 Jan 2024 13:59:02 +0000 (14:59 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 12 Jan 2024 15:46:50 +0000 (16:46 +0100)
commit9a5bf5b91817056aed150a017535376e0d1ecb08
tree4cda40d8e03cabe4733ffadef86fd582b308cd94
parent454a13af98e5a34cfc8e0933f2408e762139f46e
ruledb disclaimer: if/elsif code cleanup

by pulling out the text/{html,plain} regex directly in the elsif
condition, since the else there does not do anything

the comment now goes into the top-level else part, but the idea is the
same

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/PMG/RuleDB/Disclaimer.pm