1
0
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:
Soreine
2016-10-24 16:22:12 +02:00
parent 4f1fc842a8
commit 25909b7867

View File

@@ -137,7 +137,6 @@ const INLINE_VOID_TEXT_RULE = {
const INLINE_VOID_TEXTS_AROUND_RULE = {
match: (object) => {
return object.kind == 'block'
return object.kind == 'block' || object.kind == 'inline'
},
validate: (block) => {
const invalids = block.nodes.reduce((accu, child, index) => {