diff options
| author | crobibero <cody@robibe.ro> | 2020-11-15 11:35:36 -0700 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-11-15 11:35:36 -0700 |
| commit | 3f313206c606662d2b5bcfa2c2a99a5c218f5ff2 (patch) | |
| tree | f21b7ac01394e0146adc1e6a99df19751a272bad | |
| parent | 843847fc9311ecd04d262d8b04698d88d6332efc (diff) | |
Suggestions from review
| -rw-r--r-- | Jellyfin.Api/Helpers/HlsHelpers.cs | 2 | ||||
| -rw-r--r-- | Jellyfin.Server.Implementations/Users/DefaultPasswordResetProvider.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Api/Helpers/HlsHelpers.cs b/Jellyfin.Api/Helpers/HlsHelpers.cs index 7fd784806..45ce90566 100644 --- a/Jellyfin.Api/Helpers/HlsHelpers.cs +++ b/Jellyfin.Api/Helpers/HlsHelpers.cs @@ -48,7 +48,7 @@ namespace Jellyfin.Api.Helpers if (line == null) { // Nothing currently in buffer. - continue; + break; } if (line.IndexOf("#EXTINF:", StringComparison.OrdinalIgnoreCase) != -1) diff --git a/Jellyfin.Server.Implementations/Users/DefaultPasswordResetProvider.cs b/Jellyfin.Server.Implementations/Users/DefaultPasswordResetProvider.cs index e71d419e0..334f27f85 100644 --- a/Jellyfin.Server.Implementations/Users/DefaultPasswordResetProvider.cs +++ b/Jellyfin.Server.Implementations/Users/DefaultPasswordResetProvider.cs @@ -54,7 +54,7 @@ namespace Jellyfin.Server.Implementations.Users var usersReset = new List<string>(); foreach (var resetFile in Directory.EnumerateFiles(_passwordResetFileBaseDir, $"{BaseResetFileName}*")) { - SerializablePasswordReset? spr; + SerializablePasswordReset spr; await using (var str = File.OpenRead(resetFile)) { spr = await JsonSerializer.DeserializeAsync<SerializablePasswordReset>(str).ConfigureAwait(false) |
