refactor!: use named arguments if there is more than one

This commit is contained in:
Aleksey Kulikov 2021-09-30 18:04:36 +03:00
parent ec80ad3dd4
commit 5f7fdf4bd3
66 changed files with 1920 additions and 1136 deletions

View file

@ -26,7 +26,7 @@ void main() {
var contents = file.readAsStringSync();
expect(contents, 'Feature edit\n');
repo.reset(sha, GitReset.hard);
repo.reset(target: sha, resetType: GitReset.hard);
contents = file.readAsStringSync();
expect(contents, isEmpty);
});
@ -35,7 +35,7 @@ void main() {
var contents = file.readAsStringSync();
expect(contents, 'Feature edit\n');
repo.reset(sha, GitReset.soft);
repo.reset(target: sha, resetType: GitReset.soft);
contents = file.readAsStringSync();
expect(contents, 'Feature edit\n');
@ -50,7 +50,7 @@ void main() {
var contents = file.readAsStringSync();
expect(contents, 'Feature edit\n');
repo.reset(sha, GitReset.mixed);
repo.reset(target: sha, resetType: GitReset.mixed);
contents = file.readAsStringSync();
expect(contents, 'Feature edit\n');