Skip to content

Conversation

@junhyr
Copy link
Collaborator

@junhyr junhyr commented Jun 26, 2025

Description

Concise description of proposed changes

Additional Information

@junhyr junhyr requested a review from a team as a code owner June 26, 2025 15:06
@vercel
Copy link

vercel bot commented Jun 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
coinbase-lvpr-tv ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 9:38am
lvpr-tv ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 9:38am
ui-kit-docs-embed ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 9:38am
ui-kit-next ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 9:38am
ui-kit-next-pages ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 9:38am
ui-kit-with-pubnub ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 9:38am


import type { PlaybackRate } from "@livepeer/core/media";
// biome-ignore lint/correctness/noUnusedImports: ignored using `--suppress`
import { composeEventHandlers } from "@radix-ui/primitive";

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import composeEventHandlers.

Copilot Autofix

AI 6 months ago

To fix the issue, the unused import composeEventHandlers should be removed from the code. This will improve code clarity and maintainability. The change involves deleting the import statement on line 5. No additional changes are required since the import is not used elsewhere in the provided code.


Suggested changeset 1
packages/react/src/player/RateSelect.tsx

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/packages/react/src/player/RateSelect.tsx b/packages/react/src/player/RateSelect.tsx
--- a/packages/react/src/player/RateSelect.tsx
+++ b/packages/react/src/player/RateSelect.tsx
@@ -4,3 +4,2 @@
 // biome-ignore lint/correctness/noUnusedImports: ignored using `--suppress`
-import { composeEventHandlers } from "@radix-ui/primitive";
 import React, { useCallback } from "react";
EOF
@@ -4,3 +4,2 @@
// biome-ignore lint/correctness/noUnusedImports: ignored using `--suppress`
import { composeEventHandlers } from "@radix-ui/primitive";
import React, { useCallback } from "react";
Copilot is powered by AI and may make mistakes. Always verify output.

import { warn } from "@livepeer/core/utils";
// biome-ignore lint/correctness/noUnusedImports: ignored using `--suppress`
import { composeEventHandlers } from "@radix-ui/primitive";

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import composeEventHandlers.

Copilot Autofix

AI 6 months ago

To fix the problem, the unused import composeEventHandlers should be removed from the file. This involves deleting the line where it is imported. No other changes are necessary, as the removal does not affect the functionality of the code.


Suggested changeset 1
packages/react/src/player/Volume.tsx

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/packages/react/src/player/Volume.tsx b/packages/react/src/player/Volume.tsx
--- a/packages/react/src/player/Volume.tsx
+++ b/packages/react/src/player/Volume.tsx
@@ -4,3 +4,2 @@
 // biome-ignore lint/correctness/noUnusedImports: ignored using `--suppress`
-import { composeEventHandlers } from "@radix-ui/primitive";
 import { Presence } from "@radix-ui/react-presence";
EOF
@@ -4,3 +4,2 @@
// biome-ignore lint/correctness/noUnusedImports: ignored using `--suppress`
import { composeEventHandlers } from "@radix-ui/primitive";
import { Presence } from "@radix-ui/react-presence";
Copilot is powered by AI and may make mistakes. Always verify output.
Copy link
Contributor

@leszko leszko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for the fix @junhyr

There is still this Main / Security failure. Any thoughts how to solve it?
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants