Skip to content

Commit

Permalink
🎈 perf(getFriends): change friend.json schema
Browse files Browse the repository at this point in the history
Signed-off-by: Neko <[email protected]>
  • Loading branch information
NotEvenANeko committed Apr 30, 2022
1 parent da526a5 commit f953af2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/getFriends.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,4 @@ export interface FriendLink {
}

export const getFriends = (): FriendLink[] =>
(
JSON.parse(fs.readFileSync(FriendsFilePath, 'utf-8')) as {
data: FriendLink[];
}
)['data'];
JSON.parse(fs.readFileSync(FriendsFilePath, 'utf-8')) as FriendLink[];

0 comments on commit f953af2

Please sign in to comment.