From 5ffef98e3dd896eb9bfe8108032445ba3a901612 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Fri, 15 Aug 2025 22:49:18 -0400 Subject: [PATCH] Fix formatting --- src/commit_request.cpp | 4 ++-- src/commit_request.hpp | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/commit_request.cpp b/src/commit_request.cpp index bef08aa..268a8d3 100644 --- a/src/commit_request.cpp +++ b/src/commit_request.cpp @@ -104,7 +104,7 @@ void CommitRequest::on_end_object(void *userdata) { } ParseState current_state = ctx.current_state; - + // Handle state transitions on object end if (current_state == ParseState::PreconditionObject) { ctx.current_state = ParseState::PreconditionsArray; @@ -244,7 +244,7 @@ void CommitRequest::on_end_array(void *userdata) { } // Transition back to Root state when arrays end - if (ctx.current_state == ParseState::PreconditionsArray || + if (ctx.current_state == ParseState::PreconditionsArray || ctx.current_state == ParseState::OperationsArray) { ctx.current_state = ParseState::Root; } diff --git a/src/commit_request.hpp b/src/commit_request.hpp index 83a1712..629c3be 100644 --- a/src/commit_request.hpp +++ b/src/commit_request.hpp @@ -99,8 +99,7 @@ public: // Constructor to initialize arena-allocated containers explicit ParserContext() - : - current_key(ArenaStlAllocator(&arena)), + : current_key(ArenaStlAllocator(&arena)), current_string(ArenaStlAllocator(&arena)), current_number(ArenaStlAllocator(&arena)), precondition_type(ArenaStlAllocator(&arena)),