chore: function style

This commit is contained in:
alex8088 2022-09-24 23:58:10 +08:00
parent 8556a45cab
commit dd6322f9c8

View file

@ -8,7 +8,7 @@ const getBytecodeCompilerPath = (): string => {
return path.resolve(process.cwd(), 'node_modules', 'electron-vite', 'bin', 'electron-bytecode.js') return path.resolve(process.cwd(), 'node_modules', 'electron-vite', 'bin', 'electron-bytecode.js')
} }
export const compileToBytecode = (code: string): Promise<Buffer> => { export function compileToBytecode(code: string): Promise<Buffer> {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
let data = Buffer.from([]) let data = Buffer.from([])