From ee24254bade280ea3c0121c074951396863393ac Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 2 Nov 2018 20:09:10 -0400 Subject: Rename EnvPair to KeyValue. --- js/os.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'js') diff --git a/js/os.ts b/js/os.ts index 30c974348..a692eeb1a 100644 --- a/js/os.ts +++ b/js/os.ts @@ -81,12 +81,11 @@ export function codeCache( assert(baseRes == null); // Expect null or error. } -function createEnv(_inner: msg.EnvironRes): { [index: string]: string } { +function createEnv(inner: msg.EnvironRes): { [index: string]: string } { const env: { [index: string]: string } = {}; - for (let i = 0; i < _inner.mapLength(); i++) { - const item = _inner.map(i)!; - + for (let i = 0; i < inner.mapLength(); i++) { + const item = inner.map(i)!; env[item.key()!] = item.value()!; } -- cgit v1.2.3