From: David ‘Bombe’ Roden Date: Tue, 28 May 2013 10:57:46 +0000 (+0200) Subject: Beautify metadata output format in case there’s no content metadata. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=be678f7de86159856d6f06dcf01d4f853c39554a;p=sonitus.git Beautify metadata output format in case there’s no content metadata. --- diff --git a/src/main/java/net/pterodactylus/sonitus/data/Metadata.java b/src/main/java/net/pterodactylus/sonitus/data/Metadata.java index 9c3f85e..0903457 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/Metadata.java +++ b/src/main/java/net/pterodactylus/sonitus/data/Metadata.java @@ -222,7 +222,7 @@ public class Metadata { @Override public String toString() { - return String.format("%s: %s", formatMetadata, contentMetadata); + return String.format("%s%s%s", formatMetadata, contentMetadata.toString().length() > 0 ? ": " : "", contentMetadata); } }