summaryrefslogtreecommitdiffhomepage
path: root/packages/tui/internal/image
diff options
context:
space:
mode:
authorMárk Magyar <[email protected]>2025-06-22 20:26:46 +0200
committerGitHub <[email protected]>2025-06-22 14:26:46 -0400
commit333569bed38f1fff3c3413f67482cbc884111d41 (patch)
tree66108c30bd007437077270ba74bb5975fd25a1b5 /packages/tui/internal/image
parent09b89fdb232e25c6e8794f7fef8006591c58fb58 (diff)
downloadopencode-333569bed38f1fff3c3413f67482cbc884111d41.tar.gz
opencode-333569bed38f1fff3c3413f67482cbc884111d41.zip
ignore: fix typos and formatting (#294)
Diffstat (limited to 'packages/tui/internal/image')
-rw-r--r--packages/tui/internal/image/clipboard_unix.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/tui/internal/image/clipboard_unix.go b/packages/tui/internal/image/clipboard_unix.go
index 3cb590207..2653d8cad 100644
--- a/packages/tui/internal/image/clipboard_unix.go
+++ b/packages/tui/internal/image/clipboard_unix.go
@@ -5,8 +5,8 @@ package image
import (
"bytes"
"fmt"
- "image"
"github.com/atotto/clipboard"
+ "image"
)
func GetImageFromClipboard() ([]byte, string, error) {
@@ -28,8 +28,6 @@ func GetImageFromClipboard() ([]byte, string, error) {
}
-
-
func binaryToImage(data []byte) ([]byte, error) {
reader := bytes.NewReader(data)
img, _, err := image.Decode(reader)
@@ -40,7 +38,6 @@ func binaryToImage(data []byte) ([]byte, error) {
return ImageToBytes(img)
}
-
func min(a, b int) int {
if a < b {
return a