Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Commit 237ec9f

Browse files
Merge pull request #174 from henrikfroehling/issue/release/GH-173
Resolves GH-173
2 parents b8a0186 + cadee17 commit 237ec9f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Source/Lib/Trakt.NET/Objects/Post/Users/CustomListItems/Implementations/TraktUserCustomListItemsPostBuilder.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ public TraktUserCustomListItemsPostBuilder AddMovie(ITraktMovie movie)
4646
if (!movie.Ids.HasAnyId)
4747
throw new ArgumentException("no movie ids set or valid", nameof(movie.Ids));
4848

49-
if (!movie.Year.HasValue)
50-
throw new ArgumentException("movie year not valid", nameof(movie.Year));
51-
5249
EnsureMoviesListExists();
5350

5451
var existingMovie = _listItemsPost.Movies.FirstOrDefault(m => m.Ids == movie.Ids);
@@ -445,9 +442,6 @@ private void ValidateShow(ITraktShow show)
445442

446443
if (!show.Ids.HasAnyId)
447444
throw new ArgumentException("no show ids set or valid", nameof(show.Ids));
448-
449-
if (!show.Year.HasValue)
450-
throw new ArgumentException("show year not valid", nameof(show.Year));
451445
}
452446

453447
private void EnsureMoviesListExists()

0 commit comments

Comments
 (0)