Skip to content

Commit 2284210

Browse files
Make the license script compatible with recently changed Dart I/O stream APIs (flutter#9725)
1 parent ad582b5 commit 2284210

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ci/licenses_golden/tool_signature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Signature: 4f2f6f3820bc3297f81495a994035ef4
1+
Signature: f090834bf22f515d09c8d64dc143db47
22

tools/licenses/lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2258,8 +2258,8 @@ class _Progress {
22582258
Future<String> _readSignature(String goldenPath) async {
22592259
try {
22602260
final system.File goldenFile = system.File(goldenPath);
2261-
final String goldenSignature = await goldenFile.openRead()
2262-
.transform(utf8.decoder).transform(const LineSplitter()).first;
2261+
final String goldenSignature = await utf8.decoder.bind(goldenFile.openRead())
2262+
.transform(const LineSplitter()).first;
22632263
final RegExp signaturePattern = RegExp(r'Signature: (\w+)');
22642264
final Match goldenMatch = signaturePattern.matchAsPrefix(goldenSignature);
22652265
if (goldenMatch != null)

0 commit comments

Comments
 (0)