test: remove unnecessary variables declarations

This commit is contained in:
Aleksey Kulikov 2022-04-21 19:46:19 +03:00
parent 76b8de1f80
commit 28f08e308a
23 changed files with 416 additions and 492 deletions

View file

@ -40,7 +40,6 @@ void main() {
group('Remote', () {
test('fetch() does not prune branch by default', () {
remote.fetch();
expect(
clonedRepo.branches.any((branch) => branch.name == 'origin/feature'),
true,
@ -49,7 +48,6 @@ void main() {
test('fetch() prunes branch with provided flag', () {
remote.fetch(prune: GitFetchPrune.prune);
expect(
clonedRepo.branches.any((branch) => branch.name == 'origin/feature'),
false,
@ -58,7 +56,6 @@ void main() {
test('fetch() does not prune branch with provided flag', () {
remote.fetch(prune: GitFetchPrune.noPrune);
expect(
clonedRepo.branches.any((branch) => branch.name == 'origin/feature'),
true,