Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieulemieux committed Oct 23, 2024
1 parent ca1337e commit 51c3868
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/moa/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ const loadVariant = async (conn, moaVariant) => {
} else if (moaVariant.feature_type === 'mutational_signature') {
// Cosmic signature
let signature = {};

try {
signature = await conn.getUniqueRecordBy({
target: 'Signature',
Expand All @@ -274,15 +275,14 @@ const loadVariant = async (conn, moaVariant) => {
],
},
});
} catch(err) {
} catch (err) {
// Enforcing usage of v3 Cosmic signatures
throw Error(`Missing Cosmic signature ${moaVariant.cosmic_signature}`);
}

// 'high signature' variant type (prefered over 'signature present')
const variantType = await conn.getVocabularyTerm('high signature');



// Corresponding 'high signature' CategoryVariant
try {
return await conn.addVariant({
Expand Down

0 comments on commit 51c3868

Please sign in to comment.