Use none for empty fields

This commit is contained in:
morganamilo 2018-07-24 01:49:54 +01:00
parent 523c471a45
commit 7c74dc5dec
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E

View file

@ -268,6 +268,10 @@ func printDownloads(repoName string, length int, packages string) {
}
func printInfoValue(str, value string) {
if value == "" {
value = "None"
}
fmt.Printf(bold("%-16s%s")+" %s\n", str, ":", value)
}