Skip to content

Commit fb0d433

Browse files
committed
chore(file): remove an unnecessary warning
1 parent 8f72cf1 commit fb0d433

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/file.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,7 @@ module.exports = function(AV) {
151151
try {
152152
owner = AV.User.current();
153153
} 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 {
154+
if ('SYNC_API_NOT_AVAILABLE' !== error.code) {
159155
throw error;
160156
}
161157
}

0 commit comments

Comments
 (0)