Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Microsoft/vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Solorio committed Aug 27, 2019
2 parents e594b18 + d3605cc commit 4bf092c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ exports.setupNLS = function () {
const bundles = Object.create(null);

nlsConfig.loadBundle = function (bundle, language, cb) {
let result = bundles[bundle];
const result = bundles[bundle];
if (result) {
cb(undefined, result);

Expand All @@ -212,7 +212,7 @@ exports.setupNLS = function () {

const bundleFile = path.join(nlsConfig._resolvedLanguagePackCoreLocation, bundle.replace(/\//g, '!') + '.nls.json');
exports.readFile(bundleFile).then(function (content) {
let json = JSON.parse(content);
const json = JSON.parse(content);
bundles[bundle] = json;

cb(undefined, json);
Expand Down Expand Up @@ -301,4 +301,4 @@ exports.avoidMonkeyPatchFromAppInsights = function () {
process.env['APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL'] = true; // Skip monkey patching of 3rd party modules by appinsights
global['diagnosticsSource'] = {}; // Prevents diagnostic channel (which patches "require") from initializing entirely
};
//#endregion
//#endregion
6 changes: 3 additions & 3 deletions src/vs/base/node/languagePacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,10 @@ function factory(nodeRequire, path, fs, perf) {
const packData = JSON.parse(values[1]).contents;
const bundles = Object.keys(metadata.bundles);
const writes = [];
for (let bundle of bundles) {
for (const bundle of bundles) {
const modules = metadata.bundles[bundle];
const target = Object.create(null);
for (let module of modules) {
for (const module of modules) {
const keys = metadata.keys[module];
const defaultMessages = metadata.messages[module];
const translations = packData[module];
Expand Down Expand Up @@ -329,4 +329,4 @@ if (typeof define === 'function') {
module.exports = factory(require, path, fs, perf);
} else {
throw new Error('Unknown context');
}
}

0 comments on commit 4bf092c

Please sign in to comment.