Skip to content

Commit 4baa9c5

Browse files
committed
chore: upgrade standard
1 parent a94f834 commit 4baa9c5

File tree

3 files changed

+4480
-2556
lines changed

3 files changed

+4480
-2556
lines changed

index.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ class CouchContinuum {
241241
width: 20,
242242
total
243243
})
244-
var current = 0
244+
let current = 0
245245
const timer = setInterval(async () => {
246246
try {
247247
const { doc_count: latest } = await request({
@@ -383,9 +383,11 @@ class CouchContinuum {
383383
log(`[1/5] Creating replica db: ${displayUrl(this.target)}`)
384384
await this._createDb(this.target.href)
385385
log('[2/5] Beginning replication of primary to replica...')
386-
const selector = this.filterTombstones ? {
387-
_deleted: { $exists: false }
388-
} : undefined
386+
const selector = this.filterTombstones
387+
? {
388+
_deleted: { $exists: false }
389+
}
390+
: undefined
389391
await this._replicate(this.source, this.target, selector)
390392
if (this.continuous) {
391393
log(`Setting up continuous replication from ${this.source} to ${this.target}...`)

0 commit comments

Comments
 (0)