From c67be3b6681df86d076ce59f176a70c64289dbd0 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Fri, 12 Jan 2024 14:35:43 +0100 Subject: [PATCH] start work on federationinfo --- models/forgefed/federationinfo.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/models/forgefed/federationinfo.go b/models/forgefed/federationinfo.go index 205eb161ea..e4ce51d93e 100644 --- a/models/forgefed/federationinfo.go +++ b/models/forgefed/federationinfo.go @@ -24,12 +24,8 @@ func (info FederationInfo) Validate() []string { var result []string result = append(result, validation.ValidateNotEmpty(string(info.HostFqdn), "HostFqdn")...) result = append(result, validation.ValidateMaxLen(string(info.HostFqdn), 255, "HostFqdn")...) - if (info.NodeInfo == NodeInfo{}) { - result = append(result, "Field NodeInfo may not be empty") - } else { - result = append(result, info.NodeInfo.Validate()...) - } result = append(result, validation.ValidateNotEmpty(info.LatestActivity, "LatestActivity")...) + result = append(result, info.NodeInfo.Validate()...) return result }