From e217a37d7621dc61673061f65ba057cd0d6978f9 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Fri, 18 Nov 2016 20:06:22 +0200 Subject: [Minor] Trim whitespace --- rules/regexp/drugs.lua | 4 ++-- rules/regexp/fraud.lua | 4 ++-- rules/regexp/lotto.lua | 4 ++-- rules/rspamd.classifiers.lua | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'rules') 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 -- cgit v1.2.3