Skip to content

Commit 0f4a627

Browse files
fix: minor formatting cleanup in ParseKVLax helpers
1 parent 62a2bcb commit 0f4a627

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/exprhelpers/helpers.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,14 +1050,14 @@ func ParseKVLax(params ...any) (any, error) {
10501050
}
10511051

10521052
// parseValueLax handles quoted and unquoted values for lax parsing.
1053-
// - If it begins with a quote, it removes the surrounding quotes
1054-
// if the closing one is present and unescapes \" and \\.
1055-
// - For unquoted values, returns the entire trimmed value as-is
1053+
// - If it begins with a quote, it removes the surrounding quotes
1054+
// if the closing one is present and unescapes \" and \\.
1055+
// - For unquoted values, returns the entire trimmed value as-is
10561056
func parseValueLax(s string) string {
10571057
if s == "" {
10581058
return ""
10591059
}
1060-
1060+
10611061
if s[0] == '"' {
10621062
if len(s) >= 2 && s[len(s)-1] == '"' {
10631063
body := s[1 : len(s)-1]

0 commit comments

Comments
 (0)