nit
This commit is contained in:
parent
87e9c61540
commit
85feeb1fb8
|
|
@ -553,9 +553,9 @@ export async function toClientCertificatesProtocol(certs?: BrowserContextOptions
|
||||||
if (!certs)
|
if (!certs)
|
||||||
return undefined;
|
return undefined;
|
||||||
|
|
||||||
const bufferizeContent = async (value?: string | Buffer, path?: string): Promise<Buffer | undefined> => {
|
const bufferizeContent = async (value?: Buffer, path?: string): Promise<Buffer | undefined> => {
|
||||||
if (value)
|
if (value)
|
||||||
return Buffer.from(value);
|
return value;
|
||||||
if (path)
|
if (path)
|
||||||
return await fs.promises.readFile(path);
|
return await fs.promises.readFile(path);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue