@@ -273,7 +273,7 @@ class FlutterVersion {
273
273
///
274
274
/// Throws [VersionCheckError] if a git command fails, for example, when the
275
275
/// remote git repository is not reachable due to a network issue.
276
- static Future <String > fetchRemoteFrameworkCommitDate (String branch ) async {
276
+ static Future <String > fetchRemoteFrameworkCommitDate () async {
277
277
try {
278
278
// Fetch upstream branch's commit and tags
279
279
await _run (< String > ['git' , 'fetch' , '--tags' ]);
@@ -360,7 +360,7 @@ class FlutterVersion {
360
360
// Cache is empty or it's been a while since the last server ping. Ping the server.
361
361
try {
362
362
final DateTime remoteFrameworkCommitDate = DateTime .parse (
363
- await FlutterVersion .fetchRemoteFrameworkCommitDate (channel ),
363
+ await FlutterVersion .fetchRemoteFrameworkCommitDate (),
364
364
);
365
365
await versionCheckStamp.store (
366
366
newTimeVersionWasChecked: now,
@@ -926,11 +926,6 @@ class VersionFreshnessValidator {
926
926
927
927
/// Execute validations and print warning to [logger] if necessary.
928
928
Future <void > run () async {
929
- // Don't perform update checks if we're not on an official channel.
930
- if (! kOfficialChannels.contains (version.channel)) {
931
- return ;
932
- }
933
-
934
929
// Get whether there's a newer version on the remote. This only goes
935
930
// to the server if we haven't checked recently so won't happen on every
936
931
// command.
0 commit comments