Skip to content

Commit

Permalink
remove logging
Browse files Browse the repository at this point in the history
  • Loading branch information
retorquere committed Mar 9, 2024
1 parent e097f32 commit d695874
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions content/key-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,6 @@ export const KeyManager = new class _KeyManager {

// generate keys for entries that don't have them yet
const progress = new Progress(missing.length, 'Assigning citation keys')
log.debug('2797:', missing.length, 'missing a key')
for (const itemID of missing) {
try {
this.update(await getItemsAsync(itemID))
Expand All @@ -531,15 +530,13 @@ export const KeyManager = new class _KeyManager {

public update(item: ZoteroItem, current?: CitekeyRecord): string {
if (item.isFeedItem || !item.isRegularItem()) return null
log.debug('2797: update', item.id)

current = current || blink.first(this.keys, { where: { itemID: item.id } })

const proposed = this.propose(item)

if (current && (current.pinned || !this.autopin.enabled) && (current.pinned === proposed.pinned) && (current.citationKey === proposed.citationKey)) return current.citationKey

log.debug('2797: update', item.id, 'to', proposed)
if (current) {
current.pinned = proposed.pinned
current.citationKey = proposed.citationKey
Expand Down

0 comments on commit d695874

Please sign in to comment.