mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
cleanup std/tar (#6185)
This commit is contained in:
parent
6f22bc8278
commit
54742d29dc
1 changed files with 2 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* Ported and modified from: https://github.com/jshttp/mime-types and
|
||||
* Ported and modified from: https://github.com/beatgammit/tar-js and
|
||||
* licensed as:
|
||||
*
|
||||
* (The MIT License)
|
||||
|
@ -259,15 +259,9 @@ export interface UntarOptions extends TarInfo {
|
|||
*/
|
||||
export class Tar {
|
||||
data: TarDataWithSource[];
|
||||
written: number;
|
||||
out: Uint8Array;
|
||||
private blockSize: number;
|
||||
|
||||
constructor(recordsPerBlock?: number) {
|
||||
constructor() {
|
||||
this.data = [];
|
||||
this.written = 0;
|
||||
this.blockSize = (recordsPerBlock || 20) * recordSize;
|
||||
this.out = clean(this.blockSize);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue