mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-11-25 20:42:40 +00:00
Ammending a small bug that came up in the curvyandtrans codebase
This commit is contained in:
@@ -34,6 +34,9 @@ const actions = {
|
||||
},
|
||||
|
||||
async write ({ output, content }) {
|
||||
if (!content) {
|
||||
throw new TypeError('Got an empty write?' + output);
|
||||
}
|
||||
output = resolve(output);
|
||||
await fs.ensureDir(path.dirname(output));
|
||||
await fs.writeFile(output, content);
|
||||
|
||||
Reference in New Issue
Block a user