mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
condition replaced with assertion which checks contract expectation
This commit is contained in:
+1
-3
@@ -45,9 +45,7 @@ class MoverWrapper {
|
||||
}
|
||||
|
||||
public final void move(Editor editor, final PsiFile file) {
|
||||
if (myInfo.toMove2 == null) {
|
||||
return;
|
||||
}
|
||||
assert myInfo.toMove2 != null;
|
||||
myMover.beforeMove(editor, myInfo, myIsDown);
|
||||
final Document document = editor.getDocument();
|
||||
final int start = StatementUpDownMover.getLineStartSafeOffset(document, myInfo.toMove.startLine);
|
||||
|
||||
Reference in New Issue
Block a user