Skip to content

Commit 7b15e3e

Browse files
committed
Code formatting
1 parent e3ff269 commit 7b15e3e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Microsoft.OpenApi/Extensions/StringExtensions.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@ public static T GetEnumFromDisplayName<T>(this string displayName)
4545
/// <param name="input">String containing the words to be capitalized, delimited by the '-' character.</param>
4646
/// <returns>String value with each word capitalized and concatenated.</returns>
4747
public static string ToPascalCase(this string input)
48-
=> string.IsNullOrEmpty(input) ? input : string.Join(null, input.Split(new char[] { '-' }, StringSplitOptions.RemoveEmptyEntries)
49-
.Select(s => ToFirstCharacterUpperCase(s)));
48+
=> string.IsNullOrEmpty(input) ? input : string.Join(
49+
null, input.Split(
50+
new char[] { '-' }, StringSplitOptions.RemoveEmptyEntries)
51+
.Select(ToFirstCharacterUpperCase));
52+
5053
/// <summary>
5154
/// Capitalizes the first letter of an input string.
5255
/// </summary>

0 commit comments

Comments
 (0)