From 82f74ffe65fabfa4f290f0c603cfc3738bb42cfc Mon Sep 17 00:00:00 2001 From: Yoni Rabkin Date: Wed, 20 May 2015 10:30:55 -0400 Subject: Re-write command set and assignment code. This removes a lot of cruft along the way, which is a good thing. --- rt-liberation-rest.el | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'rt-liberation-rest.el') diff --git a/rt-liberation-rest.el b/rt-liberation-rest.el index d2c8fce..10a5a9f 100644 --- a/rt-liberation-rest.el +++ b/rt-liberation-rest.el @@ -264,12 +264,11 @@ (rt-liber-rest-handle-response response-buffer))) (message "edit command ended at %s" (current-time-string))) -(defun rt-liber-rest-command-set-status (id status) +(defun rt-liber-rest-command-set (id field status) "Set ticket ID status to be STATUS." - (let ((field (rt-liber-get-field-string 'status))) - (rt-liber-parse-answer - (rt-liber-rest-edit-runner id field status) - 'rt-liber-command-runner-parser-f))) + (rt-liber-parse-answer + (rt-liber-rest-edit-runner id field status) + 'rt-liber-command-runner-parser-f)) (provide 'rt-liberation-rest) -- cgit v1.2.3