@@ -273,7 +273,7 @@ class FlutterVersion {
273273  /// 
274274  /// Throws [VersionCheckError]  if a git command fails, for example, when the 
275275  /// 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  {
277277    try  {
278278      // Fetch upstream branch's commit and tags 
279279      await  _run (< String > ['git' , 'fetch' , '--tags' ]);
@@ -360,7 +360,7 @@ class FlutterVersion {
360360    // Cache is empty or it's been a while since the last server ping. Ping the server. 
361361    try  {
362362      final  DateTime  remoteFrameworkCommitDate =  DateTime .parse (
363-         await  FlutterVersion .fetchRemoteFrameworkCommitDate (channel ),
363+         await  FlutterVersion .fetchRemoteFrameworkCommitDate (),
364364      );
365365      await  versionCheckStamp.store (
366366        newTimeVersionWasChecked:  now,
@@ -926,11 +926,6 @@ class VersionFreshnessValidator {
926926
927927  /// Execute validations and print warning to [logger]  if necessary. 
928928   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- 
934929    // Get whether there's a newer version on the remote. This only goes 
935930    // to the server if we haven't checked recently so won't happen on every 
936931    // command. 
0 commit comments