diff options
| author | Márk Magyar <[email protected]> | 2025-06-22 20:26:46 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-22 14:26:46 -0400 |
| commit | 333569bed38f1fff3c3413f67482cbc884111d41 (patch) | |
| tree | 66108c30bd007437077270ba74bb5975fd25a1b5 /packages/tui/internal/image | |
| parent | 09b89fdb232e25c6e8794f7fef8006591c58fb58 (diff) | |
| download | opencode-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.go | 5 |
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 |
