Skip to content

Commit

Permalink
fix: only check if null in while run statement
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Nov 17, 2024
1 parent c66528d commit f7c2fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shoko.Server/API/v3/Controllers/TmdbController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2546,7 +2546,7 @@ IFormFile file
var currentHeader = "";
var movieIdXrefs = new List<(int anidbAnime, int anidbEpisode, int tmdbMovie, bool isAutomatic)>();
var episodeIdXrefs = new List<(int anidbAnime, int anidbEpisode, int tmdbShow, int tmdbEpisode, MatchRating rating)>();
while (!string.IsNullOrEmpty(line = stream.ReadLine()))
while ((line = stream.ReadLine()) is not null)
{
lineNumber++;
if (line.Length == 0 || line[0] == '#')
Expand Down

0 comments on commit f7c2fbc

Please sign in to comment.