Merge pull request #5837 from ivandrofly/feature/method-name-typo

Fix typo "Lastest" => "Latest"
This commit is contained in:
Nikolaj Olsson 2022-03-19 06:56:35 +01:00 committed by GitHub
commit bc81b68597
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,8 +51,8 @@ namespace Nikse.SubtitleEdit.Core.Forms
try
{
_changeLog = GetStringFromResponse(result);
LatestChangeLog = GetLastestChangeLog(_changeLog);
LatestVersionNumber = GetLastestVersionNumber(LatestChangeLog);
LatestChangeLog = GetLatestChangeLog(_changeLog);
LatestVersionNumber = GetLatestVersionNumber(LatestChangeLog);
}
catch (Exception exception)
{
@ -63,7 +63,7 @@ namespace Nikse.SubtitleEdit.Core.Forms
}
}
private static string GetLastestVersionNumber(string latestChangeLog)
private static string GetLatestVersionNumber(string latestChangeLog)
{
foreach (string line in latestChangeLog.Replace(Environment.NewLine, "\n").Split('\n'))
{
@ -80,7 +80,7 @@ namespace Nikse.SubtitleEdit.Core.Forms
return null;
}
private static string GetLastestChangeLog(string changeLog)
private static string GetLatestChangeLog(string changeLog)
{
bool releaseOn = false;
var sb = new StringBuilder();