Skip to content

Commit a97710f

Browse files
committed
Merge branch 'issue197' of https://github.com/Yiabiten/commandline into Yiabiten-issue197
2 parents 490d3d6 + c7e1e57 commit a97710f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/CommandLine/Text/HeadingInfo.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,7 @@ public static HeadingInfo Default
5757
{
5858
var title = ReflectionHelper.GetAttribute<AssemblyTitleAttribute>()
5959
.MapValueOrDefault(
60-
titleAttribute =>
61-
{
62-
if (titleAttribute.Title.ToLowerInvariant().EndsWith(".dll"))
63-
{
64-
return titleAttribute.Title.Substring(0, titleAttribute.Title.Length - ".dll".Length);
65-
}
66-
return titleAttribute.Title;
67-
},
60+
titleAttribute => titleAttribute.Title,
6861
ReflectionHelper.GetAssemblyName());
6962

7063
var version = ReflectionHelper.GetAttribute<AssemblyInformationalVersionAttribute>()

0 commit comments

Comments
 (0)