1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

chore: fix spelling

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-04-05 14:25:02 -04:00 committed by Janne Savolainen
parent 696c026f2d
commit f551682ace

View File

@ -23,7 +23,7 @@ const pemEncoding = (hexEncodedCert: String) => {
const requestSystemCAsInjectable = getInjectable({ const requestSystemCAsInjectable = getInjectable({
id: "request-system-cas", id: "request-system-cas",
instantiate: (di) => { instantiate: (di) => {
const wincaRootsExePath: string = __non_webpack_require__.resolve("win-ca/lib/roots.exe"); const winCARootsExePath: string = __non_webpack_require__.resolve("win-ca/lib/roots.exe");
const execFile = di.inject(execFileInjectable); const execFile = di.inject(execFileInjectable);
const logger = di.inject(loggerInjectable); const logger = di.inject(loggerInjectable);
@ -32,12 +32,12 @@ const requestSystemCAsInjectable = getInjectable({
* This needs to be done manually because for some reason calling the api from "win-ca" * This needs to be done manually because for some reason calling the api from "win-ca"
* directly fails to load "child_process" correctly on renderer * directly fails to load "child_process" correctly on renderer
*/ */
const result = await execFile(wincaRootsExePath, { const result = await execFile(winCARootsExePath, {
maxBuffer: 128 * 1024 * 1024, // 128 MiB maxBuffer: 128 * 1024 * 1024, // 128 MiB
}); });
if (!result.callWasSuccessful) { if (!result.callWasSuccessful) {
logger.warn(`[INJECT-CAS]: Error retreiving CAs`, result.error); logger.warn(`[INJECT-CAS]: Error retrieving CAs`, result.error);
return []; return [];
} }