Skip to content

Commit 9cf85e6

Browse files
committed
replaced deprecated call to UnmodifiableUnit8ListView
1 parent f574774 commit 9cf85e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/pub/third_party/tar/lib/src/writer.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ class _SynchronousTarSink implements Sink<SynchronousTarEntry> {
298298

299299
// End the tar archive by writing two zero blocks.
300300
_output
301-
..add(UnmodifiableUint8ListView(zeroBlock))
302-
..add(UnmodifiableUint8ListView(zeroBlock));
301+
..add(zeroBlock.asUnmodifiableView())
302+
..add(zeroBlock.asUnmodifiableView());
303303
_output.close();
304304

305305
_closed = true;

0 commit comments

Comments
 (0)