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

This commit is contained in:
Danny Tuppeny 2018-06-01 10:59:20 +01:00 committed by GitHub
parent 8c39c35eb0
commit 3d7d96806a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(),