Software /
code /
prosody
Annotate
.luacov @ 11980:a91494a4c3d0
mod_smacks: Fix empty cache check
In Lua, every value except `nil` and `false` are considered true in
boolean expressions, even `0` as here, which means this was dead code.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 01 Dec 2021 23:03:11 +0100 |
parent | 9469:cd2f742e5826 |
rev | line source |
---|---|
9469
cd2f742e5826
.luacov: Add config for luacov, exclude spec/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
1 exclude = { |
cd2f742e5826
.luacov: Add config for luacov, exclude spec/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
2 "^%./spec/"; |
cd2f742e5826
.luacov: Add config for luacov, exclude spec/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
3 } |