I recently found a bit of code in our node.js/electron application:
async function doStuff(pkg, name) {
await fsExtra.remove, path.join(pkg, name);
}
I am not a JS guru and would really appreciate the help. Does this code even do anything?
I kind of think that it means a call to fsExtra.remove
with no arguments, and creating a file path from pkg
and name
and then throwing this path away. So to me it looks like the code doesn't do anything. Is this correct or am I missing something?
Thanks in advance!
UPDATE: Problem solved, thank you!