fix var dump (#5921)

* fix var dump

* fix dump test
This commit is contained in:
Dogan Can Bakir 2025-02-13 14:50:14 +03:00 committed by GitHub
parent a2c8f1e4cd
commit 3c825e8045
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 8 deletions

View File

@ -13,10 +13,6 @@ type variables = map[string]any
// DumpVariables dumps the variables in a pretty format
func DumpVariables(data variables) string {
if !EnableVarDump {
return ""
}
d := godump.Dumper{
Indentation: " ",
HidePrivateFields: false,

View File

@ -34,10 +34,6 @@ func TestDumpVariables(t *testing.T) {
assert.Contains(t, result, "b")
assert.Contains(t, result, "c")
// Test with EnableVarDump set to false
EnableVarDump = false
result = DumpVariables(testVars)
assert.Empty(t, result)
}
func TestProcess(t *testing.T) {