You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is this? I mean code like Promise.reject<boolean>(new Error()). In what world is an Error a Boolean? And why define return type Boolean (in Promise) when you reject instead of resolve(false)? Use Promise<void> instead or do it right. It's messy. Or what is the reason behind?
Bug Report
Current behavior:
checkFile
rejects if file does not exist.Expected behavior:
Resolve to boolean as described in type
Promise<boolean>
.false
: Does not exist.true
: File exists.awesome-cordova-plugins/src/@awesome-cordova-plugins/plugins/file/index.ts
Line 957 in bddafc7
Steps to reproduce:
Android 13, cordova-plugin-file 8.0.1, @awesome-cordova-plugins/file 6.4.0
The text was updated successfully, but these errors were encountered: