GerritServer#initAndStart: Remove unnecessary instantiation of Config

Change-Id: Ia2cc08e17d06d81af4d69f3c1e6afb6fff890dfa
This commit is contained in:
David Pursehouse 2018-09-20 13:58:18 +09:00
parent 976934fc14
commit 115b27e297

View File

@ -229,8 +229,6 @@ public class GerritServer implements AutoCloseable {
*/
public static GerritServer initAndStart(Description desc, Config baseConfig) throws Exception {
Path site = TempFileUtil.createTempDirectory().toPath();
baseConfig = new Config(baseConfig);
baseConfig.setString("gerrit", null, "tempSiteDir", site.toString());
try {
if (!desc.memory()) {
init(desc, baseConfig, site);