Remove useless variable
This commit is contained in:
parent
78f97b28b4
commit
53842e8582
|
@ -7,7 +7,6 @@ const LXC_ROOT = '/var/lib/lxc/piston/rootfs';
|
||||||
function execute(language, source, stdin = '', args = []) {
|
function execute(language, source, stdin = '', args = []) {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
const id = new Date().getTime() + '_' + Math.floor(Math.random() * 10000000);
|
const id = new Date().getTime() + '_' + Math.floor(Math.random() * 10000000);
|
||||||
const sourceFile = `/tmp/${stamp}.code`;
|
|
||||||
|
|
||||||
mkdirSync(`${LXC_ROOT}/tmp/${id}`);
|
mkdirSync(`${LXC_ROOT}/tmp/${id}`);
|
||||||
writeFileSync(`${LXC_ROOT}/tmp/${id}/code.code`, source);
|
writeFileSync(`${LXC_ROOT}/tmp/${id}/code.code`, source);
|
||||||
|
|
Loading…
Reference in New Issue