diff --git a/lib/content-repo.js b/lib/content-repo.js index 3ef421dc4..3dc863f0e 100644 --- a/lib/content-repo.js +++ b/lib/content-repo.js @@ -19,9 +19,8 @@ module.exports = { * for such URLs. * @return {string} The complete URL to the content. */ - getHttpUriForMxc: function( - baseUrl, mxc, width, height, resizeMethod, allowDirectLinks - ) { + getHttpUriForMxc: function(baseUrl, mxc, width, height, + resizeMethod, allowDirectLinks) { if (typeof mxc !== "string" || !mxc) { return ''; } diff --git a/spec/unit/content-repo.spec.js b/spec/unit/content-repo.spec.js index e1db47deb..7684d08c5 100644 --- a/spec/unit/content-repo.spec.js +++ b/spec/unit/content-repo.spec.js @@ -21,7 +21,7 @@ describe("ContentRepo", function() { it("should return the empty string HTTP URLs by default", function() { var httpUrl = "http://example.com/image.jpeg"; - expect(ContentRepo.getHttpUriForMxc(baseUrl, httpUrl)).toEqual(''); + expect(ContentRepo.getHttpUriForMxc(baseUrl, httpUrl)).toEqual(""); }); it("should return a download URL if no width/height/resize are specified", @@ -33,7 +33,7 @@ describe("ContentRepo", function() { }); it("should return the empty string for null input", function() { - expect(ContentRepo.getHttpUriForMxc(null)).toEqual(''); + expect(ContentRepo.getHttpUriForMxc(null)).toEqual(""); }); it("should return a thumbnail URL if a width/height/resize is specified",