From 7bbe942a327e691b5372f9cf201233fa4df97ee6 Mon Sep 17 00:00:00 2001 From: Gregory Kurtzer Date: Sat, 21 Aug 2021 08:50:37 -0700 Subject: [PATCH] Fixed bug found with regards to boolean Alt/Profile values --- internal/pkg/node/methods.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/pkg/node/methods.go b/internal/pkg/node/methods.go index 63e5c972..96f5c241 100644 --- a/internal/pkg/node/methods.go +++ b/internal/pkg/node/methods.go @@ -61,8 +61,10 @@ func (ent *Entry) SetAlt(val string, from string) { } func (ent *Entry) SetAltB(val bool, from string) { - ent.altbool = val - ent.from = from + if val == true { + ent.altbool = val + ent.from = from + } }