Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieulemieux committed May 28, 2024
1 parent 59fffe6 commit bce6f4c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/civic/therapy.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const { logger } = require('../logging');
const { ncit: NCIT_SOURCE_DEFN } = require('../sources');
const { orderPreferredOntologyTerms, rid } = require('../graphkb');
const { isString } = require('lodash');


/**
Expand Down Expand Up @@ -60,7 +59,7 @@ const resolveTherapies = (evidenceItem) => {
*/
const getTherapy = async (conn, therapyRecord) => {
const name = therapyRecord.name.toLowerCase().trim();
const ncitId = therapyRecord.ncitId && isString(therapyRecord.ncitId)
const ncitId = therapyRecord.ncitId && typeof therapyRecord.ncitId === 'string'
? therapyRecord.ncitId.toLowerCase().trim()
: therapyRecord.ncitId;

Expand Down

0 comments on commit bce6f4c

Please sign in to comment.