From e8d1933b99c42b619d928cdd65916a2faa18104c Mon Sep 17 00:00:00 2001 From: Bruce MacDonald Date: Fri, 6 Jun 2025 15:05:09 -0700 Subject: [PATCH] fix lint unneeded conversions --- fs/gguf/gguf_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/gguf/gguf_test.go b/fs/gguf/gguf_test.go index caab210d5..1686cbd28 100644 --- a/fs/gguf/gguf_test.go +++ b/fs/gguf/gguf_test.go @@ -221,12 +221,12 @@ func writeKeyValue(file *os.File, key string, value any) error { _, err := file.Write([]byte(v)) return err case int64: - if err := binary.Write(file, binary.LittleEndian, uint32(typeInt64)); err != nil { + if err := binary.Write(file, binary.LittleEndian, typeInt64); err != nil { return err } return binary.Write(file, binary.LittleEndian, v) case bool: - if err := binary.Write(file, binary.LittleEndian, uint32(typeBool)); err != nil { + if err := binary.Write(file, binary.LittleEndian, typeBool); err != nil { return err } return binary.Write(file, binary.LittleEndian, v) @@ -239,7 +239,7 @@ func writeKeyValue(file *os.File, key string, value any) error { if err := binary.Write(file, binary.LittleEndian, uint32(typeArray)); err != nil { return err } - if err := binary.Write(file, binary.LittleEndian, uint32(typeString)); err != nil { + if err := binary.Write(file, binary.LittleEndian, typeString); err != nil { return err } if err := binary.Write(file, binary.LittleEndian, uint64(len(v))); err != nil {