inplace rename: remove assertion as the command name should point to initial name and should exist even when no valid element remains after invalid rename (e.g. to empty name)

This commit is contained in:
anna
2013-04-04 11:34:33 +02:00
parent 0590bfdb09
commit aee0a4ee4b
@@ -281,11 +281,6 @@ public class VariableInplaceRenamer extends InplaceRefactoring {
@Override
protected String getCommandName() {
PsiNamedElement variable = getVariable();
if (variable == null) {
LOG.error(myElementToRename);
return "Rename";
}
return RefactoringBundle.message("renaming.command.name", myInitialName);
}