mirror of https://github.com/laurent22/joplin.git
Remove unused condition in synchronizer (#5194)
parent
8e4be78013
commit
7f709c210c
|
@ -542,7 +542,7 @@ export default class Synchronizer {
|
||||||
|
|
||||||
this.logSyncOperation(action, local, remote, reason);
|
this.logSyncOperation(action, local, remote, reason);
|
||||||
|
|
||||||
if (local.type_ == BaseModel.TYPE_RESOURCE && (action == 'createRemote' || action === 'updateRemote' || (action == 'itemConflict' && remote))) {
|
if (local.type_ == BaseModel.TYPE_RESOURCE && (action == 'createRemote' || action === 'updateRemote')) {
|
||||||
const localState = await Resource.localState(local.id);
|
const localState = await Resource.localState(local.id);
|
||||||
if (localState.fetch_status !== Resource.FETCH_STATUS_DONE) {
|
if (localState.fetch_status !== Resource.FETCH_STATUS_DONE) {
|
||||||
// This condition normally shouldn't happen
|
// This condition normally shouldn't happen
|
||||||
|
|
Loading…
Reference in New Issue