summaryrefslogtreecommitdiff
path: root/js/blob.ts
diff options
context:
space:
mode:
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++;