Use none for empty fields

This commit is contained in:
morganamilo committed 2018-07-24 13:04:32 +01:00
1 parent 523c471a45
commit 7c74dc5dec
1 file changed
+4
+4
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)
}