diff options
author | Florian Klink <flokli@flokli.de> | 2023-10-11T12·00+0200 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2023-10-11T15·22+0000 |
commit | 6dab6081985dc0ccda0fcbcd45714ac122c229ef (patch) | |
tree | 9225b551ac06c32bae783f2439775978b4f8882e /tvix | |
parent | 155ab77cffbe8d3fe0c0b5d23416dd32fbdb1cff (diff) |
docs(tvix/nar-bridge): remove redundant comments r/6784
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 <brian@bmcgee.ie> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix')
-rw-r--r-- | tvix/nar-bridge/pkg/http/narinfo_get.go | 2 |
1 files changed, 0 insertions, 2 deletions
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") |