mirror of
https://github.com/Phundrak/appwrite.el.git
synced 2025-05-09 10:24:56 +00:00
Fix formatting of docstring
This commit is contained in:
parent
2f712b8a4d
commit
ed42053b5c
4
.dir-locals.el
Normal file
4
.dir-locals.el
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
;;; Directory Local Variables
|
||||||
|
;;; For more information see (info "(emacs) Directory Variables")
|
||||||
|
|
||||||
|
((emacs-lisp-mode . ((sentence-end-double-space . t))))
|
@ -78,9 +78,8 @@ in the else branch is the definition of `plistp' in Emacs 29."
|
|||||||
(defun appwrite--get-full-url (api)
|
(defun appwrite--get-full-url (api)
|
||||||
"Get the full url for API.
|
"Get the full url for API.
|
||||||
If API does not begin with an initial forward slash, add it
|
If API does not begin with an initial forward slash, add it
|
||||||
automatically.
|
automatically. If it does not contain an API version, prefix
|
||||||
|
\"/v1\" by default."
|
||||||
If it does not contain an API version, prefix \"/v1\" by default."
|
|
||||||
(let ((versionp (string-match-p "^/?v[[:digit:]]+.*" api))
|
(let ((versionp (string-match-p "^/?v[[:digit:]]+.*" api))
|
||||||
(initial-forward-slash-p (string-prefix-p "/" api)))
|
(initial-forward-slash-p (string-prefix-p "/" api)))
|
||||||
(concat appwrite-endpoint
|
(concat appwrite-endpoint
|
||||||
@ -104,8 +103,8 @@ This will show a message in the modeline in this format:
|
|||||||
The function considers a call to the API a failure in case the
|
The function considers a call to the API a failure in case the
|
||||||
HTTP status code in RESPONSE differs from SUCCESS-STATUS, the
|
HTTP status code in RESPONSE differs from SUCCESS-STATUS, the
|
||||||
HTTP status code hoped for. If that’s the case, warn the user,
|
HTTP status code hoped for. If that’s the case, warn the user,
|
||||||
see `appwrite--message-failure'. Else, return the JSON returned
|
see `appwrite--message-failure', else return the JSON returned by
|
||||||
by the API."
|
the API."
|
||||||
(let ((status (car response))
|
(let ((status (car response))
|
||||||
(json (cdr response)))
|
(json (cdr response)))
|
||||||
(if (= status success-status)
|
(if (= status success-status)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user