Skip to content

Commit

Permalink
use join() instead of fold() in _loadFile
Browse files Browse the repository at this point in the history
  • Loading branch information
d-loose authored and robert-ancell committed Jan 26, 2023
1 parent a6cc277 commit b7151fe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/src/pool.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ class AppstreamPool {
stream = gzip.decoder.bind(stream);
}

return await utf8.decoder
.bind(stream)
.fold('', (prev, element) => prev + element);
return await utf8.decoder.bind(stream).join();
}
}

0 comments on commit b7151fe

Please sign in to comment.