forked from firka/flutter
Switch to relevant Remote constructors (#146773)
[A previous PR](https://github.com/flutter/flutter/pull/144279) implemented `const` constructors in the `Remote` class, so I wanted to follow up and use those constructors in the appropriate places.
This commit is contained in:
@@ -1002,7 +1002,7 @@ class _TestRepository extends Repository {
|
||||
name: name,
|
||||
requiredLocalBranches: <String>[],
|
||||
stdio: checkouts.stdio,
|
||||
upstreamRemote: const Remote(name: RemoteName.upstream, url: 'git@github.com:upstream/repo.git'),
|
||||
upstreamRemote: const Remote.upstream('git@github.com:upstream/repo.git'),
|
||||
);
|
||||
|
||||
@override
|
||||
|
||||
@@ -50,10 +50,7 @@ void main() {
|
||||
);
|
||||
framework = FrameworkRepository(
|
||||
checkouts,
|
||||
mirrorRemote: const Remote(
|
||||
name: RemoteName.mirror,
|
||||
url: mirrorUrl,
|
||||
),
|
||||
mirrorRemote: const Remote.mirror(mirrorUrl),
|
||||
);
|
||||
|
||||
autoroller = PackageAutoroller(
|
||||
|
||||
Reference in New Issue
Block a user