Skip to content

Conversation

caitp
Copy link

@caitp caitp commented Nov 14, 2019

xfs.save() is an alias for xfs.writeFile() (async) but a callback method isn't provided. Explicitly calling writeFileSync instead prevents attempting to invoke an undefined callback.

In order to get the synchronous save method, we need to load the sync method from xfs.sync().

`xfs.save()` is an alias for `xfs.writeFile()` (async) but a callback method isn't specified. Explicitly calling writeFileSync instead prevents attempting to invoke an undefined callback.

In order to get the synchronous save method, we need to load the sync method from `xfs.sync()`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant