summaryrefslogtreecommitdiff
path: root/indexHtml.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-10 07:46:25 -0600
committerJeff Carr <[email protected]>2024-02-10 07:46:25 -0600
commit459350eaa1c4a79f7b5332be16ae1907a178f306 (patch)
treed159f270c361d21e579d50bca30eb1d34c7c52c6 /indexHtml.go
parent51a8d8d7d2b2444d9186843646594576a73ee490 (diff)
prune packages without a desc
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'indexHtml.go')
-rw-r--r--indexHtml.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/indexHtml.go b/indexHtml.go
index a809229..0aa4b17 100644
--- a/indexHtml.go
+++ b/indexHtml.go
@@ -90,6 +90,10 @@ func indexBodyScanConfig(w http.ResponseWriter) {
}
func indexBodyRepo(w http.ResponseWriter, gourl string, giturl string, desc string) {
+ // skip displaying packages without a desc
+ if desc == "" {
+ return
+ }
// fmt.Fprintln(w, " <tr> <td><h5>log/ (needed for the gui)</h5></td> <td></td> <td></td> <td></td> <td></td> </tr>")
fmt.Fprintln(w, " <tr>")
// fmt.Fprintln(w, " <td>"+gourl+"</td>")