Skip to content

Commit

Permalink
fix(logic): do not convert empty string to Variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed Jun 8, 2023
1 parent 00996dc commit 5c0d0fc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions x/logic/util/prolog.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ import (
// StringToTerm converts a string to a term.
// If the string is empty, it returns a variable.
func StringToTerm(s string) engine.Term {
if s == "" {
return engine.NewVariable()
}

return engine.NewAtom(s)
}

Expand Down

0 comments on commit 5c0d0fc

Please sign in to comment.