aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Extensions/StringHelper.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-06-19 10:49:49 -0600
committercrobibero <cody@robibe.ro>2020-06-19 10:49:49 -0600
commit494f6970724f3243ed5a6ebe89d756bf2759d3eb (patch)
tree3b46944461c30fb750170534d15dc90ffa386be0 /MediaBrowser.Model/Extensions/StringHelper.cs
parent000088f8f94e24ea715f15b722a2e64958bec07b (diff)
parent305808dd0ac4f86bb1663e7f6ba2b22064ace0ba (diff)
Merge remote-tracking branch 'upstream/api-migration' into api-library
Diffstat (limited to 'MediaBrowser.Model/Extensions/StringHelper.cs')
-rw-r--r--MediaBrowser.Model/Extensions/StringHelper.cs4
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]))