优化KEY搜索

This commit is contained in:
nilaoda 2022-08-12 19:41:00 +08:00
parent 658efdfb00
commit a89387b4f6
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ namespace N_m3u8DL_RE.Util
using var stream = new FileStream(file, FileMode.Open, FileAccess.Read, FileShare.Read); using var stream = new FileStream(file, FileMode.Open, FileAccess.Read, FileShare.Read);
using var reader = new StreamReader(stream); using var reader = new StreamReader(stream);
var line = ""; var line = "";
while (!string.IsNullOrEmpty(line = await reader.ReadLineAsync())) while ((line = await reader.ReadLineAsync()) != null)
{ {
if (line.Trim().StartsWith(kid)) if (line.Trim().StartsWith(kid))
{ {