aboutsummaryrefslogtreecommitdiffstats
path: root/util/datetime.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-03-23 23:55:33 +0100
committerKim Alvefur <zash@zash.se>2021-03-23 23:55:33 +0100
commit13185a16ae4306fc13a45713381f0487c8e11526 (patch)
tree46e6d1dbb27bfd51c507667324223216d0b2c58b /util/datetime.lua
parent2ae58ee422d6ed8aee0efe99139c5b19790d104f (diff)
downloadprosody-13185a16ae4306fc13a45713381f0487c8e11526.tar.gz
prosody-13185a16ae4306fc13a45713381f0487c8e11526.zip
util.datamapper: Fix error on attempt to coerce nil to something
Turns falsy values into nil instead of nothing, which ensures this function always has 1 return value, or table.insert({}) complains. Would still happen on some unexpected input, but that's actually a good thing.
Diffstat (limited to 'util/datetime.lua')
0 files changed, 0 insertions, 0 deletions