Showing 1 of 1 total issue
Function fetchTwitchLiveStreams
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const fetchTwitchLiveStreams = async (): Promise<void> => {
const { onlineStreams, offlineStreams } = await getTwitchLiveStreams(channels.map((channel) => channel.id));
onlineStreams.forEach((onlineStream) => {
const channel = channels.find((c) => String(c.id) === onlineStream.user_id) ?? null;