From cf7e770f00ecd8695a735373ed52c2f4de8f24ce Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Mon, 21 Aug 2017 20:42:20 +0200 Subject: [PATCH] Cleanup (formatting) --- .../com/intellij/codeInspection/ex/HTMLComposerImpl.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/platform/analysis-impl/src/com/intellij/codeInspection/ex/HTMLComposerImpl.java b/platform/analysis-impl/src/com/intellij/codeInspection/ex/HTMLComposerImpl.java index 22de697a55d7..652bcfe98efc 100644 --- a/platform/analysis-impl/src/com/intellij/codeInspection/ex/HTMLComposerImpl.java +++ b/platform/analysis-impl/src/com/intellij/codeInspection/ex/HTMLComposerImpl.java @@ -202,10 +202,9 @@ public abstract class HTMLComposerImpl extends HTMLComposer { String refElementName = refElement.getName(); final PsiElement element = refElement.getElement(); if (element != null) { - final VirtualFile virtualFile = PsiUtilCore.getVirtualFile(element); - if (virtualFile != null) { - refElementName = ProjectUtilCore.displayUrlRelativeToProject(virtualFile, virtualFile.getPresentableUrl(), element.getProject(), - true, false); + VirtualFile file = PsiUtilCore.getVirtualFile(element); + if (file != null) { + refElementName = ProjectUtilCore.displayUrlRelativeToProject(file, file.getPresentableUrl(), element.getProject(), true, false); } } buf.append(refElementName);