mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 22:13:06 +03:00
Enable nullabe reference types for MediaBrowser.Model
This commit is contained in:
@@ -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]))
|
||||
|
||||
Reference in New Issue
Block a user