summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-11-18 20:06:22 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-11-18 20:06:22 +0200
commite217a37d7621dc61673061f65ba057cd0d6978f9 (patch)
treeb4c82ab8c47145509355a512247aa1657af7f29e /rules
parent5f028335acbd28cf6529cd64c733ae95f2873def (diff)
downloadrspamd-e217a37d7621dc61673061f65ba057cd0d6978f9.tar.gz
rspamd-e217a37d7621dc61673061f65ba057cd0d6978f9.zip
[Minor] Trim whitespace
Diffstat (limited to 'rules')
-rw-r--r--rules/regexp/drugs.lua4
-rw-r--r--rules/regexp/fraud.lua4
-rw-r--r--rules/regexp/lotto.lua4
-rw-r--r--rules/rspamd.classifiers.lua6
4 files changed, 9 insertions, 9 deletions
diff --git a/rules/regexp/drugs.lua b/rules/regexp/drugs.lua
index 8d7b882f6..3a5da68ef 100644
--- a/rules/regexp/drugs.lua
+++ b/rules/regexp/drugs.lua
@@ -6,9 +6,9 @@
-- The ASF licenses this file to you under the Apache License, Version 2.0
-- (the "License"); you may not use this file except in compliance with
-- the License. You may obtain a copy of the License at:
---
+--
-- http://www.apache.org/licenses/LICENSE-2.0
---
+--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
diff --git a/rules/regexp/fraud.lua b/rules/regexp/fraud.lua
index 59e6ad03f..994024028 100644
--- a/rules/regexp/fraud.lua
+++ b/rules/regexp/fraud.lua
@@ -6,9 +6,9 @@
-- The ASF licenses this file to you under the Apache License, Version 2.0
-- (the "License"); you may not use this file except in compliance with
-- the License. You may obtain a copy of the License at:
---
+--
-- http://www.apache.org/licenses/LICENSE-2.0
---
+--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
diff --git a/rules/regexp/lotto.lua b/rules/regexp/lotto.lua
index 03ebdb4ab..b4f926274 100644
--- a/rules/regexp/lotto.lua
+++ b/rules/regexp/lotto.lua
@@ -6,9 +6,9 @@
-- The ASF licenses this file to you under the Apache License, Version 2.0
-- (the "License"); you may not use this file except in compliance with
-- the License. You may obtain a copy of the License at:
---
+--
-- http://www.apache.org/licenses/LICENSE-2.0
---
+--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
diff --git a/rules/rspamd.classifiers.lua b/rules/rspamd.classifiers.lua
index 1212fd933..c65ffbb77 100644
--- a/rules/rspamd.classifiers.lua
+++ b/rules/rspamd.classifiers.lua
@@ -59,7 +59,7 @@ local function get_specific_statfiles(classifier, task)
fun.each(function(v) table.insert(spec_st,v) end, st_longsubj)
end
end
-
+
if #spec_st > 1 then
return spec_st
else
@@ -100,7 +100,7 @@ classifiers['bayes'] = function(classifier, task, is_learn)
if not st:get_label() then
local st_l = st:get_param('language')
if st_l and st_l == language then
- -- Insert statfile with specified language
+ -- Insert statfile with specified language
table.insert(selected, st)
end
end
@@ -124,7 +124,7 @@ classifiers['bayes'] = function(classifier, task, is_learn)
if #selected > 1 then
return selected
end
-
+
return nil
end