[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/detached 0ca53e29ff 09/38: Remove error check
From: |
ELPA Syncer |
Subject: |
[elpa] externals/detached 0ca53e29ff 09/38: Remove error check |
Date: |
Thu, 17 Nov 2022 17:57:54 -0500 (EST) |
branch: externals/detached
commit 0ca53e29ff0fe5522b18002298d93d0167707493
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>
Remove error check
---
detached.el | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/detached.el b/detached.el
index defcb21cb0..e0596fab69 100644
--- a/detached.el
+++ b/detached.el
@@ -913,8 +913,6 @@ This function uses the `notifications' library."
(cl-defun detached-session-start-command (session &key type)
"Return command to start SESSION with specified TYPE."
- (unless (member type '(list string))
- (error "Type not specified for session start command"))
(detached-connection-local-variables
(let* ((socket (detached--session-file session 'socket t))
(detached-session-mode (detached--session-initial-mode session))
@@ -942,12 +940,11 @@ This function uses the `notifications' library."
(detached--set-session-state session 'started)
(pcase type
('string (string-join command " "))
- ('list command)))))
+ ('list command)
+ (_ nil)))))
(cl-defun detached-session-attach-command (session &key type)
"Return command to attach SESSION with specified TYPE."
- (unless (member type '(list string))
- (error "Type not specified for session start command"))
(detached-connection-local-variables
(let* ((socket (detached--session-file session 'socket t))
(log (detached--session-file session 'log t))
@@ -968,7 +965,8 @@ This function uses the `notifications' library."
"-r" "none")))))
(pcase type
('string (string-join command " "))
- ('list command)))))
+ ('list command)
+ (_ nil)))))
(defun detached-session-output (session)
"Return content of SESSION's output."
- [elpa] externals/detached d7dc968dfe 07/38: Sync start/attach command with main branch, (continued)
- [elpa] externals/detached d7dc968dfe 07/38: Sync start/attach command with main branch, ELPA Syncer, 2022/11/17
- [elpa] externals/detached c72236c67f 06/38: Implement attach command, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 3b7be9c684 15/38: Properly detach degraded session, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 1092140da8 29/38: Add detached-session-map, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 945830a744 33/38: Remove deprecated function, ELPA Syncer, 2022/11/17
- [elpa] externals/detached a15b46d32f 35/38: Merge copy and annotation commands, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 0facedc6fb 38/38: Update CHANGELOG, ELPA Syncer, 2022/11/17
- [elpa] externals/detached ff666ad28e 25/38: Fix indentation, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 3c7ac1730f 34/38: Add session environment property getter, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 236f6c95af 08/38: Improve implementation, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 0ca53e29ff 09/38: Remove error check,
ELPA Syncer <=
- [elpa] externals/detached fec1a4c7bd 24/38: Update function signatures, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 473fcc2d43 23/38: Rename detached-session-modes, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 5c212b2609 05/38: Update start-detached-session, ELPA Syncer, 2022/11/17
- [elpa] externals/detached aca448c773 19/38: Revert marks in list when widening, ELPA Syncer, 2022/11/17
- [elpa] externals/detached f70ac98dc5 21/38: Remove dtach--arg dependency, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 18c388bb48 36/38: Update attach shell command, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 88f925ee15 14/38: Add missing string-join, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 4cc2c4e40f 12/38: Add select host session completion function, ELPA Syncer, 2022/11/17
- [elpa] externals/detached d1c3861e8e 16/38: Add public function for session directory, ELPA Syncer, 2022/11/17
- [elpa] externals/detached ca0ee7e465 37/38: Add detach key to session map, ELPA Syncer, 2022/11/17