From 0067b60f61f398f24cf50717778fe25c3dae04a3 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Mon, 6 Jul 2015 14:30:24 +0200 Subject: [PATCH] IDEA-CR-3580 fix typo --- .../openapi/components/impl/stores/StorageUtil.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/components/impl/stores/StorageUtil.java b/platform/platform-impl/src/com/intellij/openapi/components/impl/stores/StorageUtil.java index 4f8153d5ee1a..1929944edd62 100644 --- a/platform/platform-impl/src/com/intellij/openapi/components/impl/stores/StorageUtil.java +++ b/platform/platform-impl/src/com/intellij/openapi/components/impl/stores/StorageUtil.java @@ -152,11 +152,8 @@ public class StorageUtil { throw new IllegalStateException("Content equals, but it must be handled not on this level: " + result.getName()); } } - else { - if (DEBUG_LOG != null && ApplicationManager.getApplication().isUnitTestMode()) { - DEBUG_LOG = result.getPath() + ":\n" + content + "\nOld Content:\n" + LoadTextUtil.loadText(result) + "\n---------"; - } - doWrite(requestor, result, content, lineSeparatorIfPrependXmlProlog); + else if (DEBUG_LOG != null && ApplicationManager.getApplication().isUnitTestMode()) { + DEBUG_LOG = result.getPath() + ":\n" + content + "\nOld Content:\n" + LoadTextUtil.loadText(result) + "\n---------"; } }