mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-29 18:09:49 +02:00
Remove unreachable code
This commit is contained in:
@@ -137,7 +137,6 @@ const INLINE_VOID_TEXT_RULE = {
|
|||||||
const INLINE_VOID_TEXTS_AROUND_RULE = {
|
const INLINE_VOID_TEXTS_AROUND_RULE = {
|
||||||
match: (object) => {
|
match: (object) => {
|
||||||
return object.kind == 'block'
|
return object.kind == 'block'
|
||||||
return object.kind == 'block' || object.kind == 'inline'
|
|
||||||
},
|
},
|
||||||
validate: (block) => {
|
validate: (block) => {
|
||||||
const invalids = block.nodes.reduce((accu, child, index) => {
|
const invalids = block.nodes.reduce((accu, child, index) => {
|
||||||
|
Reference in New Issue
Block a user