summaryrefslogtreecommitdiff
path: root/js/blob.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2019-09-08 01:27:18 +0900
committerRyan Dahl <ry@tinyclouds.org>2019-09-07 12:27:18 -0400
commitf12acdb50bd6afae21d8d033548c012d23ec2791 (patch)
treee61071f25a9dfe3ea853bcaea0ece7307a02bc73 /js/blob.ts
parenta205e8a3c2bf5ba72fe18bd7f224303338956c62 (diff)
Update @typescript-eslint/* to v2.1.0 (#2878)
Diffstat (limited to 'js/blob.ts')
-rw-r--r--js/blob.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/blob.ts b/js/blob.ts
index 4c86f1f24..50ab7f374 100644
--- a/js/blob.ts
+++ b/js/blob.ts
@@ -7,7 +7,7 @@ import { build } from "./build.ts";
export const bytesSymbol = Symbol("bytes");
function convertLineEndingsToNative(s: string): string {
- let nativeLineEnd = build.os == "win" ? "\r\n" : "\n";
+ const nativeLineEnd = build.os == "win" ? "\r\n" : "\n";
let position = 0;
@@ -19,7 +19,7 @@ function convertLineEndingsToNative(s: string): string {
let result = token;
while (position < s.length) {
- let c = s.charAt(position);
+ const c = s.charAt(position);
if (c == "\r") {
result += nativeLineEnd;
position++;