From be678f7de86159856d6f06dcf01d4f853c39554a Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 28 May 2013 12:57:46 +0200 Subject: [PATCH] =?utf8?q?Beautify=20metadata=20output=20format=20in=20cas?= =?utf8?q?e=20there=E2=80=99s=20no=20content=20metadata.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sonitus/data/Metadata.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.7.4