From b75729794259d6a3edf220794a4d167bcb38786b Mon Sep 17 00:00:00 2001 From: WeebDataHoarder <57538841+WeebDataHoarder@users.noreply.github.com> Date: Thu, 2 Jun 2022 00:18:35 +0200 Subject: [PATCH] omit invalid empty list --- FinalCommander.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FinalCommander.go b/FinalCommander.go index 6b2d065..22d896a 100644 --- a/FinalCommander.go +++ b/FinalCommander.go @@ -123,7 +123,7 @@ func handleHexHash(pathElements []string, ctx *httputils.RequestContext, host st CID string `json:"cid"` AccessTime int64 `json:"accessTime"` CheckTime int64 `json:"checkTime"` - Invalid []int `json:"invalidCount"` + Invalid []int `json:"invalid,omitempty"` }{ Known: true, CID: entry.CID().String(),