branch: externals/ellama
commit c6b9b165ce3649a83c6029d6f54389dd8800c722
Author: Sergey Kostyaev <[email protected]>
Commit: Sergey Kostyaev <[email protected]>

    Remove explicit handling of numeric arguments in ellama-tools
    
    The patch removes the conditional clause that converts numeric values to 
strings
    when a number is supplied as an argument. By handling numbers in the default
    case, it eliminates the explicit number check and conversion, simplifying 
the
    function. This change reduces code size and removes redundant logic.
---
 ellama-tools.el | 2 --
 1 file changed, 2 deletions(-)

diff --git a/ellama-tools.el b/ellama-tools.el
index 6900812eeb..57b60130c3 100644
--- a/ellama-tools.el
+++ b/ellama-tools.el
@@ -88,8 +88,6 @@ FUNCTION if approved, \"Forbidden by the user\" otherwise."
                           (string-truncate-left
                            arg
                            ellama-tools-argument-max-length))
-                         ((numberp arg)
-                          (number-to-string arg))
                          (t
                           (format "%S" arg))))
                       args))

Reply via email to