Use indexed Select instead of incrementing local var

This commit is contained in:
YoshiRulz 2019-03-28 13:59:26 +10:00
parent d09003c113
commit 36144da3ef
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 1 additions and 2 deletions

View File

@ -106,8 +106,7 @@ namespace BizHawk.Client.Common
subs = subs.OrderBy(s => s.Frame).ThenByDescending(s => s.Y).ToList();
}
var index = 1;
return string.Concat(subs.Select(subtitle => subtitle.ToSubRip(index++, fps, AddColorTag)));
return string.Concat(subs.Select((subtitle, i) => subtitle.ToSubRip(i + 1, fps, AddColorTag)));
}
}
}