Skip to content

Commit

Permalink
Make the license script compatible with recently changed Dart I/O str…
Browse files Browse the repository at this point in the history
…eam APIs (flutter#9725)
  • Loading branch information
jason-simmons authored Jul 9, 2019
1 parent ad582b5 commit 2284210
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ci/licenses_golden/tool_signature
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Signature: 4f2f6f3820bc3297f81495a994035ef4
Signature: f090834bf22f515d09c8d64dc143db47

4 changes: 2 additions & 2 deletions tools/licenses/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2258,8 +2258,8 @@ class _Progress {
Future<String> _readSignature(String goldenPath) async {
try {
final system.File goldenFile = system.File(goldenPath);
final String goldenSignature = await goldenFile.openRead()
.transform(utf8.decoder).transform(const LineSplitter()).first;
final String goldenSignature = await utf8.decoder.bind(goldenFile.openRead())
.transform(const LineSplitter()).first;
final RegExp signaturePattern = RegExp(r'Signature: (\w+)');
final Match goldenMatch = signaturePattern.matchAsPrefix(goldenSignature);
if (goldenMatch != null)
Expand Down

0 comments on commit 2284210

Please sign in to comment.