remove unnecessary check for HDFS load config

This commit is contained in:
zhanglistar 2023-09-04 17:52:43 +08:00
parent b504df80b7
commit a2fd3a4de8

View File

@ -145,10 +145,7 @@ HDFSBuilderWrapper createHDFSBuilder(const String & uri_str, const Poco::Util::A
hdfsBuilderSetNameNodePort(builder.get(), port); hdfsBuilderSetNameNodePort(builder.get(), port);
} }
if (config.has(std::string(CONFIG_PREFIX))) builder.loadFromConfig(config, std::string(CONFIG_PREFIX));
{
builder.loadFromConfig(config, std::string(CONFIG_PREFIX));
}
if (!user.empty()) if (!user.empty())
{ {