refactor: drop unused debug logs
This commit is contained in:
parent
4ead3dc4bf
commit
8660f00257
2 changed files with 1 additions and 12 deletions
|
|
@ -1,7 +1,6 @@
|
|||
const jaro = require('talisman/metrics/distance/jaro')
|
||||
const _ = require('lodash/fp')
|
||||
|
||||
const debugLog = require('../pp')(__filename) // KOSTIS TODO: remove
|
||||
const logger = require('../logger')
|
||||
|
||||
const stringSimilarity = _.curry(jaro)
|
||||
|
|
@ -30,7 +29,7 @@ const isBornTooLongSince = _.curry((days, dateObject, individual) => {
|
|||
// algorithm
|
||||
|
||||
function match (structs, candidate, options) {
|
||||
const {threshold, fullNameThreshold, ratio = 0.5, debug, verboseFor} = options
|
||||
const {threshold, fullNameThreshold, ratio = 0.5, verboseFor} = options
|
||||
const {fullName, words, birthDate} = candidate
|
||||
|
||||
// Accept aliases who's full name matches.
|
||||
|
|
@ -90,9 +89,6 @@ function match (structs, candidate, options) {
|
|||
_.map(_.first)
|
||||
)(matches)
|
||||
|
||||
debug && debugLog(aliasIdsFromFullName)
|
||||
debug && debugLog(aliasIdsFromNamePart)
|
||||
|
||||
// Get the full record for each matched id
|
||||
const getIndividual = aliasId => {
|
||||
const individualId = structs.aliasToIndividual.get(aliasId)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue