Batfish: delete unnecessary if
We were testing a variable for null after dereferencing it
@@ -211,7 +211,6 @@ public class Batfish extends PluginConsumer implements AutoCloseable, IBatfish {
Path testrigDir = containerDir.resolve(testrig);
settings.setName(testrig);
settings.setBasePath(testrigDir);
- if (containerDir != null) {
EnvironmentSettings envSettings = settings.getEnvironmentSettings();
settings.setSerializeIndependentPath(testrigDir
.resolve(BfConsts.RELPATH_VENDOR_INDEPENDENT_CONFIG_DIR));
@@ -267,7 +266,6 @@ public class Batfish extends PluginConsumer implements AutoCloseable, IBatfish {
envPath.resolve(BfConsts.RELPATH_VENDOR_SPECIFIC_CONFIG_DIR));
}
}
- }
public static String flatten(
String input, BatfishLogger logger,
