Suggestions from review
This commit is contained in:
parent
843847fc93
commit
3f313206c6
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user