Skip to content

Commit

Permalink
cleanup tar (denoland/deno#6185)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosc90 authored Jun 8, 2020
1 parent 977e090 commit d89a51f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions archive/tar.ts
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit d89a51f

Please sign in to comment.