mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup: remove the unnecessary try-catch block
Parsing errors are already caught inside getBoolean() IDEA-CR-60006, IDEA-233305 GitOrigin-RevId: 3f9fba106b51328908c6508cf1f1eacf69035d9b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
66ddd2ee21
commit
dab14be03a
@@ -90,7 +90,7 @@ public final class ConfigImportHelper {
|
||||
|
||||
try {
|
||||
Pair<Path, Path> oldConfigDirAndOldIdePath = null;
|
||||
if (shouldAskForConfig(log)) {
|
||||
if (shouldAskForConfig()) {
|
||||
oldConfigDirAndOldIdePath = showDialogAndGetOldConfigPath(guessedOldConfigDirs);
|
||||
}
|
||||
else if (customMigrationOption != null) {
|
||||
@@ -187,14 +187,8 @@ public final class ConfigImportHelper {
|
||||
return configDir.resolveSibling(configDir.getFileName().toString() + "-backup");
|
||||
}
|
||||
|
||||
private static boolean shouldAskForConfig(@NotNull Logger log) {
|
||||
try {
|
||||
return Boolean.getBoolean(SHOW_IMPORT_CONFIG_DIALOG_PROPERTY);
|
||||
}
|
||||
catch (Throwable t) {
|
||||
log.error(t);
|
||||
return false;
|
||||
}
|
||||
private static boolean shouldAskForConfig() {
|
||||
return Boolean.getBoolean(SHOW_IMPORT_CONFIG_DIALOG_PROPERTY);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user