We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f72cf1 commit fb0d433Copy full SHA for fb0d433
src/file.js
@@ -151,11 +151,7 @@ module.exports = function(AV) {
151
try {
152
owner = AV.User.current();
153
} catch (error) {
154
- if ('SYNC_API_NOT_AVAILABLE' === error.code) {
155
- console.warn(
156
- 'Get current user failed. It seems this runtime use an async storage system, please create AV.File in the callback of AV.User.currentAsync().'
157
- );
158
- } else {
+ if ('SYNC_API_NOT_AVAILABLE' !== error.code) {
159
throw error;
160
}
161
0 commit comments