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

@ -27,7 +27,10 @@ void main() {
});
test('finds object by short oid', () {
final oid = Oid.fromSHA(repo, lastCommit.substring(0, 5));
final oid = Oid.fromSHA(
repo: repo,
sha: lastCommit.substring(0, 5),
);
expect(oid.sha, lastCommit);
});
});