Use zerop
This commit is contained in:
parent
49106bf695
commit
830532f503
1 changed files with 2 additions and 2 deletions
4
kagi.el
4
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)))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue