Ver código fonte

[Minor] Apply luacheck suggestions

tags/3.5
Vsevolod Stakhov 1 ano atrás
pai
commit
22604a2590
Nenhuma conta vinculada ao e-mail do autor do commit
2 arquivos alterados com 3 adições e 3 exclusões
  1. 1
    1
      test/functional/lua/hashes.lua
  2. 2
    2
      utils/sa_trivial_convert.lua

+ 1
- 1
test/functional/lua/hashes.lua Ver arquivo

h:reset() h:reset()
end end
h:update(t['str']) h:update(t['str'])
if not (h:hex() == t['hex']) then
if h:hex() ~= t['hex'] then
t['error'] = 'sum mismatch: ' .. h:hex() t['error'] = 'sum mismatch: ' .. h:hex()
table.insert(worry, logger.slog('%1', t)) table.insert(worry, logger.slog('%1', t))
end end

+ 2
- 2
utils/sa_trivial_convert.lua Ver arquivo

end end
end end


cur_rule['ordinary'] = ordinary and (not (#hdr_params > 1))
cur_rule['ordinary'] = ordinary and #hdr_params <= 1
cur_rule['header'] = hdr_params cur_rule['header'] = hdr_params
end end
end end
rspamd_logger.messagex('stored multimap conf in %s', 'auto_multimap.conf') rspamd_logger.messagex('stored multimap conf in %s', 'auto_multimap.conf')


local sa_remain = io.open('auto_sa.conf', 'w') local sa_remain = io.open('auto_sa.conf', 'w')
fun.each(function(l)
fun.each(function(l)
sa_remain:write(l) sa_remain:write(l)
sa_remain:write('\n') sa_remain:write('\n')
end, fun.filter(function(l) return not string.match(l, '^%s+$') end, complicated)) end, fun.filter(function(l) return not string.match(l, '^%s+$') end, complicated))

Carregando…
Cancelar
Salvar