diff options
| author | crobibero <cody@robibe.ro> | 2020-06-13 15:23:42 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-06-13 15:23:42 -0600 |
| commit | ce37c4074937e15e6cdd23f0f6e5016502ac2cee (patch) | |
| tree | 7263216cabb1e789fa9a2faa69c17187e7424e61 /MediaBrowser.Model/Extensions/StringHelper.cs | |
| parent | 16e26be87f3c17422b7467882c5170fe11031825 (diff) | |
| parent | 0011e8df47380936742302ef40639a4626a780ed (diff) | |
Merge remote-tracking branch 'upstream/api-migration' into api-item-lookup
Diffstat (limited to 'MediaBrowser.Model/Extensions/StringHelper.cs')
| -rw-r--r-- | MediaBrowser.Model/Extensions/StringHelper.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Model/Extensions/StringHelper.cs b/MediaBrowser.Model/Extensions/StringHelper.cs index f819a295c..8ffa3c4ba 100644 --- a/MediaBrowser.Model/Extensions/StringHelper.cs +++ b/MediaBrowser.Model/Extensions/StringHelper.cs @@ -12,9 +12,9 @@ namespace MediaBrowser.Model.Extensions /// <returns>The string with the first character as uppercase.</returns> public static string FirstToUpper(string str) { - if (string.IsNullOrEmpty(str)) + if (str.Length == 0) { - return string.Empty; + return str; } if (char.IsUpper(str[0])) |
