aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2014-11-11 08:47:46 -0500
committerSean Allred <code@seanallred.com>2014-11-11 08:47:46 -0500
commit94e649f7318b2518fe31af7cdea74b7f7bfde1e3 (patch)
treef6b9c678adba38733de594b76a0e97253436299a
parent28500694aa199c1a1bb496067ffd956bb8a9f3a9 (diff)
Simplify logical structure
-rw-r--r--sx-request.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/sx-request.el b/sx-request.el
index 92c3041..56362fc 100644
--- a/sx-request.el
+++ b/sx-request.el
@@ -102,7 +102,7 @@ number of requests left every time it finishes a call.")
(buffer-string)))
(response (with-demoted-errors "`json' error: %S"
(json-read-from-string data))))
- (unless (not (and (not response) (string-equal data "{}")))
+ (when (and (not response) (string-equal data "{}"))
(sx-message "Unable to parse response: %S" response)
(error "Response could not be read by `json-read-from-string'"))
;; If we get here, the response is a valid data structure