mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-02 19:52:32 +02:00
cleanup unnecessary variable
This commit is contained in:
@@ -178,7 +178,6 @@ export const GeneralTransforms = {
|
||||
if (selection != null && result != null) {
|
||||
selection[key] = result
|
||||
} else {
|
||||
let found = false
|
||||
let prev: TextEntry | undefined
|
||||
let next: TextEntry | undefined
|
||||
|
||||
@@ -191,7 +190,6 @@ export const GeneralTransforms = {
|
||||
}
|
||||
}
|
||||
|
||||
if (!found) {
|
||||
if (prev) {
|
||||
point.path = prev[1]
|
||||
point.offset = prev[0].text.length
|
||||
@@ -204,7 +202,6 @@ export const GeneralTransforms = {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
break
|
||||
}
|
||||
|
Reference in New Issue
Block a user