mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 12:49: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
|
@ -230,7 +230,7 @@ void addAll({
|
|||
);
|
||||
|
||||
calloc.free(pathspecC);
|
||||
for (var p in pathPointers) {
|
||||
for (final p in pathPointers) {
|
||||
calloc.free(p);
|
||||
}
|
||||
calloc.free(strArray);
|
||||
|
@ -296,7 +296,7 @@ void removeAll({
|
|||
);
|
||||
|
||||
calloc.free(pathspecC);
|
||||
for (var p in pathPointers) {
|
||||
for (final p in pathPointers) {
|
||||
calloc.free(p);
|
||||
}
|
||||
calloc.free(strArray);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue