From 5c0d0fcc6efc18d1b5e9b8596464d43e56001158 Mon Sep 17 00:00:00 2001 From: Benjamin DENEUX Date: Thu, 8 Jun 2023 15:48:16 +0200 Subject: [PATCH] fix(logic): do not convert empty string to Variable --- x/logic/util/prolog.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/x/logic/util/prolog.go b/x/logic/util/prolog.go index d083fc95..48212dc4 100644 --- a/x/logic/util/prolog.go +++ b/x/logic/util/prolog.go @@ -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) }