Andy Jarrett // Code. Develop. Manage.

cannot cast void to non-void

If you ever see this error it means you're trying to output a function which doesn't return a value.

For me I was playing around with fileDelete() and without looking at thedocs I assumed this would pass back a boolean to tell you if it was successfulor not.


I’m here, learning and working away. If you liked this content and want to keep me going, consider buying me a coffee.
Your support keeps this site running and the coffee brewing! ☕️