Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 3cd4ecb

Browse files
committed
Make the license script compatible with recently changed Dart I/O stream APIs
1 parent 129979c commit 3cd4ecb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ci/licenses_golden/tool_signature

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

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)