Minor refactor
This commit is contained in:
parent
3b34bcdbcd
commit
0d8cd028d9
1 changed files with 2 additions and 2 deletions
|
@ -152,8 +152,8 @@ class SyncService {
|
|||
return await syncWithRemote();
|
||||
}
|
||||
}
|
||||
final lastDBUpdationTime = _prefs.getInt(_dbUpdationTimeKey);
|
||||
if (lastDBUpdationTime != null && lastDBUpdationTime != 0) {
|
||||
final lastDBUpdationTime = _prefs.getInt(_dbUpdationTimeKey) ?? 0;
|
||||
if (lastDBUpdationTime != 0) {
|
||||
await _loadAndStorePhotos(
|
||||
lastDBUpdationTime, syncStartTime, existingLocalFileIDs);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue