private static bool VersionIsTooOld(NameValueCollection items, Match update, UpdateInfo updateInfo) { if ((updateInfo.GetUpdateDelta() is TimeSpan updateTimeDelta) && (updateTimeDelta < Config.BuildTimeDifferenceForOutdatedBuilds)) { return(false); } if (Version.TryParse(items["build_version"], out var logVersion) && Version.TryParse(update.Groups["version"].Value, out var updateVersion)) { if (logVersion < updateVersion) { return(true); } if (int.TryParse(items["build_number"], out var logBuild) && int.TryParse(update.Groups["build"].Value, out var updateBuild)) { if (logBuild + Config.BuildNumberDifferenceForOutdatedBuilds < updateBuild) { return(true); } } return(false); } return(!SameCommits(items["build_commit"], update.Groups["commit"].Value)); }