From f4a71bd1cc7957edc652f2e0e373ad9a7e27ea46 Mon Sep 17 00:00:00 2001 From: Eugene Date: Fri, 20 Dec 2024 22:59:33 +0200 Subject: [PATCH] BlockTypeTableBlock -> BlockTypeTable; BlockTypeTableRowBlock -> BlockTypeTableRow; Consistency is still the king --- block.go | 4 ++-- const.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/block.go b/block.go index 50e65d0..59915d4 100644 --- a/block.go +++ b/block.go @@ -834,9 +834,9 @@ func decodeBlock(raw map[string]interface{}) (Block, error) { b = &TemplateBlock{} case BlockTypeSyncedBlock: b = &SyncedBlock{} - case BlockTypeTableBlock: + case BlockTypeTable: b = &TableBlock{} - case BlockTypeTableRowBlock: + case BlockTypeTableRow: b = &TableRowBlock{} case BlockTypeUnsupported: diff --git a/const.go b/const.go index 3bd7b79..c4e510b 100644 --- a/const.go +++ b/const.go @@ -237,8 +237,8 @@ const ( BlockTypeLinkToPage BlockType = "link_to_page" BlockTypeTemplate BlockType = "template" BlockTypeSyncedBlock BlockType = "synced_block" - BlockTypeTableBlock BlockType = "table" - BlockTypeTableRowBlock BlockType = "table_row" + BlockTypeTable BlockType = "table" + BlockTypeTableRow BlockType = "table_row" BlockTypeUnsupported BlockType = "unsupported" )