condition replaced with assertion which checks contract expectation

This commit is contained in:
Oleg Sukhodolsky
2013-12-09 18:03:56 +04:00
parent a141b3e691
commit a78f80daab
@@ -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);