From 830532f503b49d57aec0bdcda8b3cb19e1d2723e Mon Sep 17 00:00:00 2001 From: Bram Schoenmakers Date: Sat, 30 Dec 2023 10:04:56 +0100 Subject: [PATCH] Use zerop --- kagi.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kagi.el b/kagi.el index 8b90023..466987c 100644 --- a/kagi.el +++ b/kagi.el @@ -221,7 +221,7 @@ interpretation." curl-flags (list kagi-api-fastgpt-url))) (return (apply #'call-process-region all-flags))) - (if (eql return 0) + (if (zerop return) (buffer-string) (error "Call to FastGPT API returned with status %s" return))))) @@ -241,7 +241,7 @@ interpretation." curl-flags (list kagi-api-summarizer-url))) (return (apply #'call-process-region all-flags))) - (if (eql return 0) + (if (zerop return) (buffer-string) (error "Call to Summarizer API returned with status %s" return)))))