fix more linting issues

This commit is contained in:
Philipp Kühn
2020-09-24 00:37:31 +02:00
parent ac33eb483e
commit 617cdd4d99
8 changed files with 12 additions and 12 deletions

View File

@@ -14,9 +14,8 @@ declare module '../Editor' {
export const removeMark: RemoveMarkCommand = typeOrName => ({ tr, state }) => {
const { selection } = tr
const type = getMarkType(typeOrName, state.schema)
let {
from, to, $from, empty,
} = selection
let { from, to } = selection
const { $from, empty } = selection
if (empty) {
const range = getMarkRange($from, type)