From 8e07668b9d0151869d10b791c6b815635e68d48f Mon Sep 17 00:00:00 2001 From: nick Date: Fri, 22 Nov 2024 15:18:02 +0900 Subject: [PATCH] fix: safety code based on feedback --- node/pkg/common/types/types.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/node/pkg/common/types/types.go b/node/pkg/common/types/types.go index 4fa6a3b7e..9158dc3b2 100644 --- a/node/pkg/common/types/types.go +++ b/node/pkg/common/types/types.go @@ -105,6 +105,10 @@ func (m *LatestFeedDataMap) GetLatestFeedDataFromCache(ctx context.Context, feed } } + if result == nil { + result = []*FeedData{} + } + return result, nil }