mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
style: use "map/where" instead of "for" loop
This commit is contained in:
parent
3a0fa75929
commit
cfa5268af2
28 changed files with 193 additions and 323 deletions
|
@ -87,9 +87,9 @@ void main() {
|
|||
test('successfully packs with provided packDelegate', () {
|
||||
void packDelegate(PackBuilder packBuilder) {
|
||||
final branches = repo.branches;
|
||||
for (var branch in branches) {
|
||||
for (final branch in branches) {
|
||||
final ref = repo.lookupReference('refs/heads/${branch.name}');
|
||||
for (var commit in repo.log(sha: ref.target.sha)) {
|
||||
for (final commit in repo.log(sha: ref.target.sha)) {
|
||||
packBuilder.addRecursively(commit.id);
|
||||
commit.free();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue