Skip to content

Commit

Permalink
refactor: don’t use return for a single return
Browse files Browse the repository at this point in the history
  • Loading branch information
hanspagel committed May 13, 2024
1 parent 009e11c commit cfda8c8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ const featuredClients = (
clientKey: 'libcurl',
},
] as const
).filter((featuredClient) => {
return availableTargets.value.find((target: AvailableTarget) => {
).filter((featuredClient) =>
availableTargets.value.find((target: AvailableTarget) => {
return (
target.key === featuredClient.targetKey &&
target.clients.find(
(client: ClientInfo) => client.key === featuredClient.clientKey,
)
)
})
})
}),
)
/**
* Icons have longer names to appear in icon searches, e.g. "javascript-js" instead of just "javascript". This function
Expand Down

0 comments on commit cfda8c8

Please sign in to comment.