Update to 142.4245.2: Fix compilation

This commit is contained in:
Natalia Ukhorskaya
2015-08-26 12:40:43 +03:00
committed by Nikolay Krasko
parent ffe41b88a7
commit 11331e74fd
@@ -163,7 +163,7 @@ class UnusedImportInspection : AbstractKotlinInspection() {
if (project.isDisposed || !file.isValid || editor.isDisposed || !file.isWritable) return false
// do not optimize imports on the fly during undo/redo
val undoManager = UndoManager.getInstance(editor.project)
val undoManager = UndoManager.getInstance(project)
if (undoManager.isUndoInProgress || undoManager.isRedoInProgress) return false
// if we stand inside import statements, do not optimize