From 7438a1d65cdaf888e7d11677d8d3e6e48982902a Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Tue, 10 Sep 2024 10:59:11 +0100 Subject: [PATCH] tidy up null checks --- packages/server/src/integrations/googlesheets.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/src/integrations/googlesheets.ts b/packages/server/src/integrations/googlesheets.ts index af3212bf60..0d766ac1ef 100644 --- a/packages/server/src/integrations/googlesheets.ts +++ b/packages/server/src/integrations/googlesheets.ts @@ -399,14 +399,14 @@ export class GoogleSheetsIntegration implements DatasourcePlus { sheet, }) case Operation.CREATE_TABLE: - if (json.table == null) { + if (!json.table) { throw new Error( "attempted to create a table without specifying the table to create" ) } return this.createTable(json.table) case Operation.UPDATE_TABLE: - if (json.table == null) { + if (!json.table) { throw new Error( "attempted to create a table without specifying the table to create" )