public async Task <bool> CheckForUpdates() { var currentVersion = await GetCurrentVersion(); if (currentVersion == string.Empty) { return(true); } var latestVersion = await torUpdater.GetLatestVersion(); return(currentVersion != latestVersion); }
public async Task <bool> CheckForUpdates() { var currentVersion = await GetCurrentVersion(); if (currentVersion == string.Empty) { return(true); } var(_, latestVersion) = await torUpdater.GetLatestVersion(); if (latestVersion == string.Empty) { return(false); } return(!currentVersion.Equals(latestVersion, StringComparison.Ordinal)); }