aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Data/Entities/Track.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2020-06-20 16:48:48 +0200
committerGitHub <noreply@github.com>2020-06-20 16:48:48 +0200
commitbeb3896d7fba09e038b45c784273dbea1e48013c (patch)
tree55e9c9102f67e11ac0225c25166c2e4caaf012eb /Jellyfin.Data/Entities/Track.cs
parente8e5208fbd9484a1b37eed5dece524f108886fe0 (diff)
parent6556bec646a28d08267f30640125865cf42240d0 (diff)
Merge pull request #3390 from telans/fixes
Multiple warning fixes
Diffstat (limited to 'Jellyfin.Data/Entities/Track.cs')
-rw-r--r--Jellyfin.Data/Entities/Track.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/Jellyfin.Data/Entities/Track.cs b/Jellyfin.Data/Entities/Track.cs
index 59a9eb4af..b7d7b5873 100644
--- a/Jellyfin.Data/Entities/Track.cs
+++ b/Jellyfin.Data/Entities/Track.cs
@@ -42,7 +42,11 @@ namespace Jellyfin.Data.Entities
this.UrlId = urlid;
- if (_musicalbum0 == null) throw new ArgumentNullException(nameof(_musicalbum0));
+ if (_musicalbum0 == null)
+ {
+ throw new ArgumentNullException(nameof(_musicalbum0));
+ }
+
_musicalbum0.Tracks.Add(this);
this.Releases = new HashSet<Release>();
@@ -84,7 +88,7 @@ namespace Jellyfin.Data.Entities
{
int? value = _TrackNumber;
GetTrackNumber(ref value);
- return (_TrackNumber = value);
+ return _TrackNumber = value;
}
set