()
| 7 | import allContributors from "data/contributors.json"; |
| 8 | |
| 9 | export const getAllContributors = () => { |
| 10 | const contributors: Contributor[] = []; |
| 11 | |
| 12 | try { |
| 13 | return allContributors as Contributor[]; |
| 14 | } catch (e) { |
| 15 | console.error(e); |
| 16 | return contributors; |
| 17 | } |
| 18 | }; |
| 19 | |
| 20 | export function getContributorBySlug(slug: string): Contributor { |
| 21 | const allContributors = getAllContributors(); |
no outgoing calls
no test coverage detected