1
0
Fork 0

Use zerop

This commit is contained in:
Bram Schoenmakers 2023-12-30 10:04:56 +01:00
parent 49106bf695
commit 830532f503
Signed by: bram
GPG key ID: 0CCD19DFDC63258F

View file

@ -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)))))