Hide repositories with 0 tags count

This commit is contained in:
Roman Vynar
2020-02-19 11:29:54 +02:00
parent 67d82c7d59
commit b6398fa33c
3 changed files with 9 additions and 1 deletions

View File

@@ -302,6 +302,11 @@ func (c *Client) DeleteTag(repo, tag string) {
c.logger.Error(errs[0])
} else {
// Returns 202 on success.
if !strings.Contains(repo, "/") {
c.tagCounts["library/"+repo]--
} else {
c.tagCounts[repo]--
}
c.logger.Infof("DELETE %s (tag:%s) %s", uri, tag, resp.Status)
}
}