Skip to content

Commit 13aed7d

Browse files
committed
MOBILE-1519 prefetch: Not having files doesn't mean its downloaded
1 parent 8f34cdf commit 13aed7d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

www/core/components/course/services/prefetchdelegate.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,6 @@ angular.module('mm.core')
186186

187187
return promise.then(function(files) {
188188

189-
if (files.length === 0) { // No files, treat is as downloaded.
190-
return $q.when(mmCoreDownloaded);
191-
}
192-
193189
// Get revision and timemodified if they aren't defined.
194190
// If handler doesn't define a function to get them, get them from file list.
195191
var promises = [];

0 commit comments

Comments
 (0)