Skip to content

Commit

Permalink
fix: safety code based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Nov 22, 2024
1 parent 7f9850f commit 8e07668
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions node/pkg/common/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ func (m *LatestFeedDataMap) GetLatestFeedDataFromCache(ctx context.Context, feed
}
}

if result == nil {
result = []*FeedData{}
}

return result, nil
}

Expand Down

0 comments on commit 8e07668

Please sign in to comment.