summaryrefslogtreecommitdiff
path: root/archive/tar.ts
diff options
context:
space:
mode:
authorAxetroy <axetroy.dev@gmail.com>2019-06-19 12:22:01 +0800
committerRyan Dahl <ry@tinyclouds.org>2019-06-18 21:22:01 -0700
commitc85b1c06a9804ad41fbccf8fe5a5689f28eb049e (patch)
treee855fc7c02baaa219aa81a2a54a69b19c1fb3716 /archive/tar.ts
parentd6e92582cc2267210f71e893b14672783301f87b (diff)
lint: add max line length rules (denoland/deno_std#507)
Original: https://github.com/denoland/deno_std/commit/b04fda30c8949b6347094b898bfa427c0b9a6162
Diffstat (limited to 'archive/tar.ts')
-rw-r--r--archive/tar.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/archive/tar.ts b/archive/tar.ts
index 5698ae6a0..5f5b1a99e 100644
--- a/archive/tar.ts
+++ b/archive/tar.ts
@@ -1,5 +1,6 @@
/**
- * Ported and modified from: https://github.com/jshttp/mime-types and licensed as:
+ * Ported and modified from: https://github.com/jshttp/mime-types and
+ * licensed as:
*
* (The MIT License)
*
@@ -292,7 +293,8 @@ export class Tar {
/**
* Append a file to this tar archive
- * @param fileName file name (e.g., test.txt; use slash for directory separators)
+ * @param fileName file name
+ * e.g., test.txt; use slash for directory separators
* @param opts options
*/
async append(fileName: string, opts: TarOptions): Promise<void> {
@@ -314,7 +316,8 @@ export class Tar {
}
if (i < 0 || fileName.length > 100 || fileNamePrefix!.length > 155) {
throw new Error(
- "ustar format does not allow a long file name (length of [file name prefix] + / + [file name] must be shorter than 256 bytes)"
+ "ustar format does not allow a long file name (length of [file name" +
+ "prefix] + / + [file name] must be shorter than 256 bytes)"
);
}
}