From c10218a1fa544f36ed62c224a053d5956b8f34b4 Mon Sep 17 00:00:00 2001 From: manuroe Date: Mon, 11 Jan 2016 17:12:28 +0100 Subject: [PATCH] Fixed Jenkins tests complaints --- lib/client.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/client.js b/lib/client.js index 71f38c26b..21b7ba030 100644 --- a/lib/client.js +++ b/lib/client.js @@ -2231,12 +2231,15 @@ MatrixClient.prototype.deletePushRule = function(scope, kind, ruleId, callback) * @return {module:client.Promise} Resolves: result object * @return {module:http-api.MatrixError} Rejects: with an error response. */ -MatrixClient.prototype.setPushRuleEnabled = function(scope, kind, ruleId, enabled, callback) { +MatrixClient.prototype.setPushRuleEnabled = function(scope, kind, + ruleId, enabled, callback) { var path = utils.encodeUri("/pushrules/" + scope + "/$kind/$ruleId/enabled", { $kind: kind, $ruleId: ruleId }); - return this._http.authedRequest(callback, "PUT", path, undefined, enabled ? 'true' : 'false'); + return this._http.authedRequest( + callback, "PUT", path, undefined, enabled ? 'true' : 'false' + ); }; /**