[asterisk-commits] kmoore: branch kmoore/stasis-http_sounds r391291 - /team/kmoore/stasis-http_s...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 10 13:34:13 CDT 2013


Author: kmoore
Date: Mon Jun 10 13:34:11 2013
New Revision: 391291

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=391291
Log:
Address findings from Alec Davis

Modified:
    team/kmoore/stasis-http_sounds/res/stasis_http/resource_sounds.c

Modified: team/kmoore/stasis-http_sounds/res/stasis_http/resource_sounds.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/stasis-http_sounds/res/stasis_http/resource_sounds.c?view=diff&rev=391291&r1=391290&r2=391291
==============================================================================
--- team/kmoore/stasis-http_sounds/res/stasis_http/resource_sounds.c (original)
+++ team/kmoore/stasis-http_sounds/res/stasis_http/resource_sounds.c Mon Jun 10 13:34:11 2013
@@ -211,10 +211,10 @@
 	struct ast_json *sound_blob;
 
 	sound_blob = create_sound_blob(args->sound_id, NULL);
-	if (sound_blob) {
-		stasis_http_response_ok(response, sound_blob);
-		return;
-	}
-
-	stasis_http_response_error(response, 404, "Not Found", "Sound not found");
-}
+	if (!sound_blob) {
+		stasis_http_response_error(response, 404, "Not Found", "Sound not found");
+		return;
+	}
+
+	stasis_http_response_ok(response, sound_blob);
+}




More information about the asterisk-commits mailing list