Kocal-Web-Extensions/Solary

View on GitHub

Showing 1 of 1 total issue

Function fetchTwitchLiveStreams has 31 lines of code (exceeds 25 allowed). Consider refactoring.
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;
Severity: Minor
Found in src/services/twitch-streams.ts - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language