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:
Nate
2024-04-16 18:55:59 -05:00
committed by GitHub
parent 3d51fa9b9c
commit 34bc632493
5 changed files with 15 additions and 51 deletions

View File

@@ -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

View File

@@ -50,10 +50,7 @@ void main() {
);
framework = FrameworkRepository(
checkouts,
mirrorRemote: const Remote(
name: RemoteName.mirror,
url: mirrorUrl,
),
mirrorRemote: const Remote.mirror(mirrorUrl),
);
autoroller = PackageAutoroller(