Kocal-Web-Extensions/Solary

View on GitHub
src/services/twitch-streams.ts

Summary

Maintainability
A
1 hr
Test Coverage

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

    There are no issues that match your filters.

    Category
    Status