Skip to content

Commit

Permalink
fix: return type of getGyromagneticRatio
Browse files Browse the repository at this point in the history
  • Loading branch information
jobo322 committed Nov 20, 2023
1 parent 6d5aeb7 commit 6cfbc83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export const gyromagneticRatio: GyromagneticRatio = {
};

export function getGyromagneticRatio(nucleus: string) {
if (gyromagneticRatio[nucleus as Nuclei]) return gyromagneticRatio[nucleus as Nuclei];
if (gyromagneticRatio[nucleus as Nuclei])
return gyromagneticRatio[nucleus as Nuclei];

Check failure on line 48 in src/index.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Expected { after 'if' condition

nucleus = nucleus.toLowerCase();
if (nucleus === 'proton') return gyromagneticRatio['1H'];
Expand Down

0 comments on commit 6cfbc83

Please sign in to comment.