Skip to content

Commit f4a71bd

Browse files
committed
BlockTypeTableBlock -> BlockTypeTable; BlockTypeTableRowBlock -> BlockTypeTableRow; Consistency is still the king
1 parent f2cb9bd commit f4a71bd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

block.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -834,9 +834,9 @@ func decodeBlock(raw map[string]interface{}) (Block, error) {
834834
b = &TemplateBlock{}
835835
case BlockTypeSyncedBlock:
836836
b = &SyncedBlock{}
837-
case BlockTypeTableBlock:
837+
case BlockTypeTable:
838838
b = &TableBlock{}
839-
case BlockTypeTableRowBlock:
839+
case BlockTypeTableRow:
840840
b = &TableRowBlock{}
841841

842842
case BlockTypeUnsupported:

const.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ const (
237237
BlockTypeLinkToPage BlockType = "link_to_page"
238238
BlockTypeTemplate BlockType = "template"
239239
BlockTypeSyncedBlock BlockType = "synced_block"
240-
BlockTypeTableBlock BlockType = "table"
241-
BlockTypeTableRowBlock BlockType = "table_row"
240+
BlockTypeTable BlockType = "table"
241+
BlockTypeTableRow BlockType = "table_row"
242242
BlockTypeUnsupported BlockType = "unsupported"
243243
)
244244

0 commit comments

Comments
 (0)