From 7b281d701b8488706009ffad97debf651f015448 Mon Sep 17 00:00:00 2001 From: Will Hunt <will@half-shot.uk> Date: Thu, 25 Oct 2018 20:14:25 +0100 Subject: [PATCH] Linting --- src/util.ts | 4 ++-- test/test_matrixeventprocessor.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util.ts b/src/util.ts index 82fceb6..6346ffe 100644 --- a/src/util.ts +++ b/src/util.ts @@ -240,8 +240,8 @@ export class Util { public static GetReplyFromReplyBody(body: string) { const lines = body.split("\n"); - while(lines[0].startsWith("> ") || lines[0].trim().length === 0) { - lines.splice(0,1); + while (lines[0].startsWith("> ") || lines[0].trim().length === 0) { + lines.splice(0, 1); if (lines.length === 0) { return ""; } diff --git a/test/test_matrixeventprocessor.ts b/test/test_matrixeventprocessor.ts index 6505924..e54d2ac 100644 --- a/test/test_matrixeventprocessor.ts +++ b/test/test_matrixeventprocessor.ts @@ -108,11 +108,11 @@ This is the first reply`, const size = parseInt(name.substring(name.lastIndexOf("/") + 1), undefined); return Buffer.alloc(size); }, - }) + }); return new (Proxyquire("../src/matrixeventprocessor", { "./util": { - Util + Util, }, })).MatrixEventProcessor( new MatrixEventProcessorOpts( -- GitLab