Skip to content

Commit 86f704a

Browse files
committed
Clean up
Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
1 parent 6aca436 commit 86f704a

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

model/runtime_expression.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ func IsStrictExpr(expression string) bool {
4040
return strings.HasPrefix(expression, "${") && strings.HasSuffix(expression, "}")
4141
}
4242

43-
// ContainsExpr returns true if the string contains `${` and `}`
44-
func ContainsExpr(expression string) bool {
45-
return strings.Contains(expression, "${") && strings.Contains(expression, "}")
46-
}
47-
4843
// SanitizeExpr processes the expression to ensure it's ready for evaluation
4944
// It removes `${}` if present and replaces single quotes with double quotes
5045
func SanitizeExpr(expression string) string {

model/runtime_expression_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,6 @@ func TestIsStrictExpr(t *testing.T) {
110110
expression: "${}",
111111
want: true, // Technically matches prefix+suffix
112112
},
113-
{
114-
name: "With single quote",
115-
expression: "echo 'hello, I love ${ .project }",
116-
want: false,
117-
},
118113
}
119114

120115
for _, tc := range tests {

0 commit comments

Comments
 (0)