Don't restore the default bad tags if the user disables them all.

This commit is contained in:
Ann Priestman 2017-07-27 13:04:42 -04:00
parent 3c3ad42756
commit e485765210
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ public final class PostgresEamDbSettings {
}
String badTagsStr = ModuleSettings.getConfigSetting("CentralRepository", "db.badTags"); // NON-NLS
if (badTagsStr == null || badTagsStr.isEmpty()) {
if (badTagsStr == null) {
badTagsStr = DEFAULT_BAD_TAGS;
}
badTags = new ArrayList<>(Arrays.asList(badTagsStr.split(",")));

View File

@ -90,7 +90,7 @@ public final class SqliteEamDbSettings {
}
String badTagsStr = ModuleSettings.getConfigSetting("CentralRepository", "db.badTags"); // NON-NLS
if (badTagsStr == null || badTagsStr.isEmpty()) {
if (badTagsStr == null) {
badTagsStr = DEFAULT_BAD_TAGS;
}
badTags = new ArrayList<>(Arrays.asList(badTagsStr.split(",")));