mirror of
https://github.com/flutter/flutter
synced 2024-09-21 09:11:56 +00:00
Use correct branch for version checks on beta/dev (#18016)
This commit is contained in:
parent
8c39c35eb0
commit
3d7d96806a
|
@ -296,7 +296,7 @@ class FlutterVersion {
|
|||
|
||||
// Cache is empty or it's been a while since the last server ping. Ping the server.
|
||||
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));
|
||||
await versionCheckStamp.store(
|
||||
newTimeVersionWasChecked: _clock.now(),
|
||||
|
|
Loading…
Reference in a new issue