mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 00:06:16 +02:00
Add assertion for decreasing the indent
Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>
This commit is contained in:
parent
c0a15fb7d0
commit
a27651908f
1 changed files with 1 additions and 0 deletions
|
@ -176,6 +176,7 @@ private:
|
||||||
void decreaseIndent()
|
void decreaseIndent()
|
||||||
{
|
{
|
||||||
if (options.prettyPrint()) {
|
if (options.prettyPrint()) {
|
||||||
|
assert(indent.size() >= options.prettyIndent);
|
||||||
indent.resize(indent.size() - options.prettyIndent);
|
indent.resize(indent.size() - options.prettyIndent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue