diff --git a/lib/content-repo.js b/lib/content-repo.js index 62869f73a..3ef421dc4 100644 --- a/lib/content-repo.js +++ b/lib/content-repo.js @@ -19,7 +19,9 @@ 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 a5e3b06f1..e1db47deb 100644 --- a/spec/unit/content-repo.spec.js +++ b/spec/unit/content-repo.spec.js @@ -13,7 +13,9 @@ describe("ContentRepo", function() { it("should do nothing to HTTP URLs when allowing direct links", function() { var httpUrl = "http://example.com/image.jpeg"; expect( - ContentRepo.getHttpUriForMxc(baseUrl, httpUrl, undefined, undefined, undefined, true) + ContentRepo.getHttpUriForMxc( + baseUrl, httpUrl, undefined, undefined, undefined, true + ) ).toEqual(httpUrl); });