Skip to content

Commit

Permalink
fix code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
mauberti-bc committed Oct 29, 2024
1 parent e109186 commit 882b8fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/services/observation-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1212,10 +1212,10 @@ export class ObservationService extends DBService {

// If no value exists, return the default code ID or null
if (!value) {
return defaultCodeId || null;
return defaultCodeId ?? null;
}

// Return the ID from the map if it exists, otherwise return null
return codeMap.get(value) || null;
return codeMap.get(value) ?? null;
}
}

0 comments on commit 882b8fb

Please sign in to comment.