Unverified Commit 3d7d9680 authored by Danny Tuppeny's avatar Danny Tuppeny Committed by GitHub

Use correct branch for version checks on beta/dev (#18016)

parent 8c39c35e
...@@ -296,7 +296,7 @@ class FlutterVersion { ...@@ -296,7 +296,7 @@ class FlutterVersion {
// Cache is empty or it's been a while since the last server ping. Ping the server. // Cache is empty or it's been a while since the last server ping. Ping the server.
try { try {
final String branch = _channel == 'alpha' ? 'alpha' : 'master'; final String branch = officialChannels.contains(_channel) ? _channel : 'master';
final DateTime remoteFrameworkCommitDate = DateTime.parse(await FlutterVersion.fetchRemoteFrameworkCommitDate(branch)); final DateTime remoteFrameworkCommitDate = DateTime.parse(await FlutterVersion.fetchRemoteFrameworkCommitDate(branch));
await versionCheckStamp.store( await versionCheckStamp.store(
newTimeVersionWasChecked: _clock.now(), newTimeVersionWasChecked: _clock.now(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment