diff options
Diffstat (limited to 'sx-request.el')
-rw-r--r-- | sx-request.el | 2 |
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 |