From 711277cdef1888c33408fbf02ab177e707eac818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Thu, 30 Dec 2021 10:57:38 +0100 Subject: [PATCH] feat: do not remove prepared level on pop level --- Core/NosSmooth.Packets/PacketStringBuilder.cs | 1 - Core/NosSmooth.Packets/PacketStringEnumerator.cs | 1 - 2 files changed, 2 deletions(-) diff --git a/Core/NosSmooth.Packets/PacketStringBuilder.cs b/Core/NosSmooth.Packets/PacketStringBuilder.cs index 20c42ff..fedcce9 100644 --- a/Core/NosSmooth.Packets/PacketStringBuilder.cs +++ b/Core/NosSmooth.Packets/PacketStringBuilder.cs @@ -104,7 +104,6 @@ public class PacketStringBuilder return new InvalidOperationError("The level cannot be popped, the stack is already at the top level."); } - _preparedLevelSeparator = null; _currentLevel = _currentLevel.Parent; return Result.FromSuccess(); diff --git a/Core/NosSmooth.Packets/PacketStringEnumerator.cs b/Core/NosSmooth.Packets/PacketStringEnumerator.cs index 18ab4d7..9023335 100644 --- a/Core/NosSmooth.Packets/PacketStringEnumerator.cs +++ b/Core/NosSmooth.Packets/PacketStringEnumerator.cs @@ -180,7 +180,6 @@ public struct PacketStringEnumerator return new InvalidOperationError("The level cannot be popped, the stack is already at the top level."); } - _preparedLevel = null; _numberOfSeparators[_currentLevel.Separator]--; _currentLevel = _currentLevel.Parent; return Result.FromSuccess(); -- 2.49.0