From 1ad1bbc8cb7d3464bee9d075ef958a3ac12033b1 Mon Sep 17 00:00:00 2001
From: Will Hunt <will@half-shot.uk>
Date: Fri, 8 Feb 2019 23:04:47 +0000
Subject: [PATCH] Ah, now I remember why we do that

---
 src/store.ts                   | 3 ---
 test/test_matrixroomhandler.ts | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/store.ts b/src/store.ts
index 0b69ee8..7397b3b 100644
--- a/src/store.ts
+++ b/src/store.ts
@@ -98,9 +98,6 @@ export class DiscordStore {
             const schemaClass = require(`./db/schema/v${version}.js`).Schema;
             let schema: IDbSchema;
             if (version === SCHEMA_ROOM_STORE_REQUIRED) { // 8 requires access to the roomstore.
-                if (!roomStore) {
-                    throw Error("Schema 8 requires the room store, but it was not provided");
-                }
                 schema = (new schemaClass(roomStore) as IDbSchema);
             } else {
                 schema = (new schemaClass() as IDbSchema);
diff --git a/test/test_matrixroomhandler.ts b/test/test_matrixroomhandler.ts
index 1aa82ad..d653c7c 100644
--- a/test/test_matrixroomhandler.ts
+++ b/test/test_matrixroomhandler.ts
@@ -198,7 +198,7 @@ function createRH(opts: any = {}) {
         removeEntriesByMatrixRoomId: () => {
 
         },
-    }
+    };
     const handler = new RoomHandler(bot as any, config, provisioner as any, bridge as any, store);
     return handler;
 }
-- 
GitLab