Removed redundant checking for test mode. Exceptions will be thrown anyway.

This commit is contained in:
Evgeny Gerashchenko
2013-03-27 17:20:29 +04:00
parent 3917f11b12
commit d8ccfe55b6
3 changed files with 10 additions and 26 deletions
@@ -134,9 +134,6 @@ public class JetPsiChecker implements Annotator {
// For failing tests and to notify about idea internal error in -ea mode
holder.createErrorAnnotation(element, e.getClass().getCanonicalName() + ": " + e.getMessage());
LOG.error(e);
if (ApplicationManager.getApplication().isUnitTestMode()) {
throw ExceptionUtils.rethrow(e);
}
}
}
}