From 94e649f7318b2518fe31af7cdea74b7f7bfde1e3 Mon Sep 17 00:00:00 2001 From: Sean Allred Date: Tue, 11 Nov 2014 08:47:46 -0500 Subject: Simplify logical structure --- sx-request.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sx-request.el') 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 -- cgit v1.2.3