fixed bug in when you print debug message

This commit is contained in:
Shreyas Goenka 2023-01-19 22:01:24 +01:00
parent cd336bcc99
commit 93e5c83091
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ func (t *tracker) errWithTrace(prefix string) error {
func (t *tracker) hasCycle(golangType reflect.Type) bool {
_, ok := t.seenTypes[golangType]
if !ok {
if ok {
fmt.Println("[DEBUG] traceSet for cycle: ", t.seenTypes)
}
return ok