summaryrefslogtreecommitdiff
path: root/std/archive/tar.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-25 00:09:14 +0200
committerGitHub <noreply@github.com>2020-04-25 00:09:14 +0200
commit0cb1bb98cc2de8dfe51b7adbe992666936146c90 (patch)
treea50b84ff268732e9db15895b443638ac86657007 /std/archive/tar.ts
parent833539fcafa77f341b74498b37372a61c5f10418 (diff)
BREAKING CHANGE: change order of args in Deno.copy() (#4885)
Diffstat (limited to 'std/archive/tar.ts')
-rw-r--r--std/archive/tar.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/archive/tar.ts b/std/archive/tar.ts
index cafef8723..6bc2b92d0 100644
--- a/std/archive/tar.ts
+++ b/std/archive/tar.ts
@@ -470,7 +470,7 @@ export class Untar {
while (rest > 0) {
await this.reader.readFull(this.block);
const arr = rest < recordSize ? this.block.subarray(0, rest) : this.block;
- await Deno.copy(writer, new Deno.Buffer(arr));
+ await Deno.copy(new Deno.Buffer(arr), writer);
rest -= recordSize;
}