aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/BaseItem.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2021-09-03 16:17:02 +0200
committerGitHub <noreply@github.com>2021-09-03 16:17:02 +0200
commit79e51b7fa20dbcb013ddd335fa829f83802dae71 (patch)
tree046d44c729b1f6b3a2370c78403517daa0a174d6 /MediaBrowser.Controller/Entities/BaseItem.cs
parent2f360151c266ff0885589338fdcdebd2a0c57fae (diff)
parentbfb37a9ed9989f63ee8b00f41f4efef7a92fc157 (diff)
Merge pull request #6475 from crobibero/warn-259810
Remove more and more warnings
Diffstat (limited to 'MediaBrowser.Controller/Entities/BaseItem.cs')
-rw-r--r--MediaBrowser.Controller/Entities/BaseItem.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs
index 067fecd87..3b182f7c9 100644
--- a/MediaBrowser.Controller/Entities/BaseItem.cs
+++ b/MediaBrowser.Controller/Entities/BaseItem.cs
@@ -112,7 +112,7 @@ namespace MediaBrowser.Controller.Entities
private string _name;
- public static char SlugChar = '-';
+ public const char SlugChar = '-';
protected BaseItem()
{
@@ -2050,7 +2050,7 @@ namespace MediaBrowser.Controller.Entities
public virtual string GetClientTypeName()
{
- if (IsFolder && SourceType == SourceType.Channel && !(this is Channel))
+ if (IsFolder && SourceType == SourceType.Channel && this is not Channel)
{
return "ChannelFolderItem";
}