Skip to content

Commit

Permalink
Adjusting to PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
BitlyTwiser committed Sep 15, 2024
1 parent 0f622ed commit 2d268d4
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/root.zig
Original file line number Diff line number Diff line change
Expand Up @@ -418,16 +418,7 @@ pub fn Ymlz(comptime Destination: type) type {
}

fn getExpressionValueWithTrim(self: *Self, expression: Expression) []const u8 {
_ = self;

// Trim spaces from value
const value = switch (expression.value) {
.Simple => expression.value.Simple,
.KV => expression.value.KV.value,
else => @panic("Not implemeted for " ++ @typeName(@TypeOf(expression.value))),
};

return std.mem.trim(u8, value, " ");
return std.mem.trim(u8, self.getExpressionValue(expression), " ");
}

fn getExpressionValue(self: *Self, expression: Expression) []const u8 {
Expand Down

0 comments on commit 2d268d4

Please sign in to comment.