This commit is contained in:
Neeraj Gupta 2023-05-09 19:39:19 +05:30 committed by GitHub
commit 5b6d81a9ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -856,7 +856,7 @@ class FileUploader {
try {
return _uploadURLs.removeFirst();
} catch (e) {
if (e is StateError && e.message == 'No element' && _queue.isNotEmpty) {
if (e is StateError && e.message == 'No element' && _queue.isEmpty) {
_logger.warning("Oops, uploadUrls has no element now, fetching again");
return _getUploadURL();
} else {