Skip to content

Commit 0e81fec

Browse files
authored
Fix empty situation (#214)
1 parent d2d1814 commit 0e81fec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Common/CustomAttributes/GenericBreakingChangeAttribute.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ public string GetBreakingChangeTextFromAttribute(Type type, bool withCmdletName)
129129
public void PrintCustomAttributeInfo(Type type, bool withCmdletName, Action<string> writeOutput)
130130
{
131131
if (!withCmdletName) {
132-
writeOutput(string.Format(Resources.BreakingChangesAttributesDeclarationMessage, GetAttributeSpecificMessage()));
132+
if(!string.IsNullOrWhiteSpace(GetAttributeSpecificMessage())){
133+
writeOutput(string.Format(Resources.BreakingChangesAttributesDeclarationMessage, GetAttributeSpecificMessage()));
134+
}
133135
} else
134136
{
135137
writeOutput(string.Format(Resources.BreakingChangesAttributesDeclarationMessageWithCmdletName, Utilities.GetNameFromCmdletType(type), GetAttributeSpecificMessage()));

0 commit comments

Comments
 (0)