From 6dab6081985dc0ccda0fcbcd45714ac122c229ef Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 11 Oct 2023 14:00:24 +0200 Subject: docs(tvix/nar-bridge): remove redundant comments These really only describe what the code is doing, remove. Pointed out in https://cl.tvl.fyi/c/depot/+/9652/comment/987b3b7f_c7b5e47b/ Change-Id: I512a274295244f96744a489871861fed9523bb37 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9654 Reviewed-by: Brian McGee Tested-by: BuildkiteCI --- tvix/nar-bridge/pkg/http/narinfo_get.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'tvix/nar-bridge/pkg/http') diff --git a/tvix/nar-bridge/pkg/http/narinfo_get.go b/tvix/nar-bridge/pkg/http/narinfo_get.go index d46125f58528..acb80c739053 100644 --- a/tvix/nar-bridge/pkg/http/narinfo_get.go +++ b/tvix/nar-bridge/pkg/http/narinfo_get.go @@ -53,14 +53,12 @@ func renderNarinfo( log = log.WithField("pathInfo", pathInfo) - // The PathInfo received needs to be valid, and contain a NARInfo field. if _, err := pathInfo.Validate(); err != nil { log.WithError(err).Error("unable to validate PathInfo") return fmt.Errorf("unable to validate PathInfo: %w", err) } - // Ensure the PathInfo contains a NARInfo field if pathInfo.GetNarinfo() == nil { log.Error("PathInfo doesn't contain Narinfo field") -- cgit 1.4.1