fix useless var

Unlike lists, this isn't mutated for maps because there's no
intermediate builder object being used for maps (lists are assembled
with an ArrayList, after which they are converted to plain slices).
This commit is contained in:
torque 2024-05-12 18:48:18 -07:00
parent 2b643c5221
commit a9f2298132
Signed by: torque
SSH Key Fingerprint: SHA256:nCrXefBNo6EbjNSQhv0nXmEg/VuNq3sMF5b8zETw3Tk

View File

@ -266,7 +266,7 @@ pub const Value = union(enum) {
}
fn endMap(self: *Builder, diag: *ParseDiagnostic) !void {
var top = self.container_stack.pop();
const top = self.container_stack.pop();
if (top != .map) {
diag.setMessage("map ended when a map was not the top container");