Skip to content

Commit 47e3f71

Browse files
committed
removed empty values keys from map
1 parent 63c652d commit 47e3f71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

localEvaluation/localEvaluation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func getValue(flagName string, user UserProperties) Variant {
151151
func getMapOfValue(user UserProperties) map[string]interface{} {
152152
flags := make(map[string]interface{})
153153
result, _ := fetch(user)
154-
if len(result) != 0 {
154+
if result != nil && len(result) != 0 {
155155
for k, v := range result {
156156
if v.Value != "" {
157157
flags[k] = v.Value

0 commit comments

Comments
 (0)