Fix ‘pcase-exhaustive’ cases
There's more information in the ‘status’ variable than just what I extract. The ‘. ,_’ matches anything else into a discard pattern so that I'm only getting the data I need.
This commit is contained in:
parent
7c531e3ab3
commit
91488f1358
1 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@
|
|||
|
||||
(defun tekuti--send-finished (status buffer args)
|
||||
(pcase-exhaustive status
|
||||
(`(:redirect ,url)
|
||||
(`(:redirect ,url . ,_)
|
||||
(save-excursion
|
||||
(with-current-buffer buffer
|
||||
(goto-char (point-min))
|
||||
|
@ -111,7 +111,7 @@
|
|||
(insert "#+" key ": " value "\n"))))
|
||||
args))))
|
||||
(message "Created new post: %s" url))
|
||||
(`(:error (error http ,code))
|
||||
(`(:error (error http ,code) . ,_)
|
||||
(message "Failed to create post: %d" code))))
|
||||
|
||||
;;;###autoload
|
||||
|
|
Loading…
Reference in a new issue