Skip to content

Commit

Permalink
fix: removing additional space
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmaaa committed Jul 5, 2024
1 parent b60abeb commit ce1acd7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ private void createDefaultDebugConfig()
try
{
String originalName = wizard.getWorkingCopy().getName();
String debugConfigName = originalName.substring(0, originalName.lastIndexOf("Configuration")) + " Debug"; //$NON-NLS-1$ //$NON-NLS-2$
int configPartIndex = originalName.lastIndexOf("Configuration"); //$NON-NLS-1$
String debugConfigName = configPartIndex != -1 ? originalName.substring(0, configPartIndex) + "Debug" //$NON-NLS-1$
: originalName;
wizard.getWorkingCopy().copy(debugConfigName).doSave();
}
catch (CoreException e)
Expand Down

0 comments on commit ce1acd7

Please sign in to comment.