Skip to content

Commit

Permalink
move code into else clause
Browse files Browse the repository at this point in the history
  • Loading branch information
gregns1 committed Sep 19, 2024
1 parent 80daa42 commit e146ea3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions db/import_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,7 @@ func (il *importListener) ImportFeedEvent(ctx context.Context, collection *Datab
base.DebugfCtx(ctx, base.KeyImport, "Did not import doc %q - external update will not be accessible via Sync Gateway. Reason: %v", base.UD(docID), err)
}
}
}
if syncData != nil && syncData.Attachments != nil {
} else if syncData != nil && syncData.Attachments != nil {
base.DebugfCtx(ctx, base.KeyImport, "Attachment metadata found in sync data for doc with id %s, migrating attachment metadata", base.UD(docID))
// we have attachments to migrate
err := collection.MigrateAttachmentMetadata(ctx, docID, event.Cas, syncData)
Expand Down

0 comments on commit e146ea3

Please sign in to comment.