From 3c01e2db43edf5faaf7397b0d9a2583612c374c8 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Wed, 2 Sep 2015 09:50:43 +0100 Subject: [PATCH] Style checks --- lib/http-api.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/http-api.js b/lib/http-api.js index 04f2a9bbe..3dd86615c 100644 --- a/lib/http-api.js +++ b/lib/http-api.js @@ -394,17 +394,19 @@ module.exports.MatrixHttpApi.prototype = { } catch (ex) { defer.reject(ex); - if (callback) callback(ex); + if (callback) { + callback(ex); + } } return defer.promise; } }; -/** +/* * Returns a callback that can be invoked by an HTTP request on completion, * that will either resolve or reject the given defer as well as invoke the * given userDefinedCallback (if any). - * + * * If onlyData is true, the defer/callback is invoked with the body of the * response, otherwise the result code. */