Suggestions from review

This commit is contained in:
crobibero 2020-11-15 11:35:36 -07:00
parent 843847fc93
commit 3f313206c6
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ namespace Jellyfin.Api.Helpers
if (line == null) if (line == null)
{ {
// Nothing currently in buffer. // Nothing currently in buffer.
continue; break;
} }
if (line.IndexOf("#EXTINF:", StringComparison.OrdinalIgnoreCase) != -1) if (line.IndexOf("#EXTINF:", StringComparison.OrdinalIgnoreCase) != -1)

View File

@ -54,7 +54,7 @@ namespace Jellyfin.Server.Implementations.Users
var usersReset = new List<string>(); var usersReset = new List<string>();
foreach (var resetFile in Directory.EnumerateFiles(_passwordResetFileBaseDir, $"{BaseResetFileName}*")) foreach (var resetFile in Directory.EnumerateFiles(_passwordResetFileBaseDir, $"{BaseResetFileName}*"))
{ {
SerializablePasswordReset? spr; SerializablePasswordReset spr;
await using (var str = File.OpenRead(resetFile)) await using (var str = File.OpenRead(resetFile))
{ {
spr = await JsonSerializer.DeserializeAsync<SerializablePasswordReset>(str).ConfigureAwait(false) spr = await JsonSerializer.DeserializeAsync<SerializablePasswordReset>(str).ConfigureAwait(false)