Improve (un-)quoting of funcs used in `khoj--get-enabled-content-types'

- Based on melpa package feedback for khoj.el
- Verified these changes don't affect behavior of the function
This commit is contained in:
Debanjum Singh Solanky
2022-12-19 18:02:23 -03:00
parent 5db3a67df5
commit 23ca5a2d43

View File

@@ -241,9 +241,9 @@ Use `which-key` if available, else display simple message in echo area"
(content-type (cdr (assoc 'content-type json-response)))) (content-type (cdr (assoc 'content-type json-response))))
;; return content-type items with configuration ;; return content-type items with configuration
(mapcar (mapcar
'car #'car
(cl-remove-if-not (cl-remove-if-not
'(lambda (a) (not (eq (cdr a) :null))) (lambda (a) (not (eq (cdr a) :null)))
content-type)))))) content-type))))))
(defun khoj--construct-api-query (query search-type &optional rerank) (defun khoj--construct-api-query (query search-type &optional rerank)