Skip to content

Commit

Permalink
core: Add 'up to date' log in all cases (#1079)
Browse files Browse the repository at this point in the history
  • Loading branch information
aenario authored and sebn committed Jun 28, 2018
1 parent 752ab11 commit 8ccff4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/merge.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ class Merge {
if (doc.remote == null) { doc.remote = file.remote }
if (doc.ino == null) { doc.ino = file.ino }
if (sameFile(file, doc)) {
log.info({path}, 'up to date')
return null
} else {
return this.pouch.put(doc)
Expand Down Expand Up @@ -273,6 +274,7 @@ class Merge {
delete was.errors
doc.moveFrom = was
if (file && sameFile(file, doc)) {
log.info({path}, 'up to date (move)')
return null
} else if (file) {
const dst = await this.resolveConflictAsync(side, doc, file)
Expand Down

0 comments on commit 8ccff4b

Please sign in to comment.