commit eed763a: [Minor] Remove superflous "string.format()"

twesterhever 40121680+twesterhever at users.noreply.github.com
Mon Jul 29 17:56:32 UTC 2024


Author: twesterhever
Date: 2024-05-01 08:09:19 +0000
URL: https://github.com/rspamd/rspamd/commit/eed763a7cf7deb90c98085c047bafad998ef05b5

[Minor] Remove superflous "string.format()"

---
 rules/regexp/headers.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index 7397ed84b..dc339b0ad 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -904,7 +904,7 @@ reconf['HAS_ORG_HEADER'] = {
 }
 
 reconf['HAS_CD_HEADER'] = {
-  re = string.format('header_exists(Content-Description)'),
+  re = 'header_exists(Content-Description)',
   description = 'Has Content-Description header',
   score = 0.0,
   group = 'headers'


More information about the Commits mailing list