aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_paseto_spec.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-09-24 13:41:54 +0200
committerKim Alvefur <zash@zash.se>2023-09-24 13:41:54 +0200
commit069bcf619b5ce62f79f249a43432fa2de2281d1d (patch)
tree46505dd2284c98f94ea2d4956849e27c41aa347a /spec/util_paseto_spec.lua
parentadfd306e6ec56e709dc1eed522acb36c20c2b19e (diff)
downloadprosody-069bcf619b5ce62f79f249a43432fa2de2281d1d.tar.gz
prosody-069bcf619b5ce62f79f249a43432fa2de2281d1d.zip
mod_storage_internal: Fix fast trimming of archive with exactly one item
This method would previously never delete the first (and only) item since it works out which item should become the first item after the trim operation, which doesn't make sense when all should be removed. This also works as an optimization for when all the last item should be trimmed, thus items should be removed.
Diffstat (limited to 'spec/util_paseto_spec.lua')
0 files changed, 0 insertions, 0 deletions