Fix style, fix typo and remove extra code

This commit is contained in:
Alexey Milovidov 2021-05-23 03:21:48 +03:00
parent fff2f7b2be
commit 4cfabd2675

View File

@ -63,9 +63,8 @@ void registerCodecDensity(CompressionCodecFactory & factory)
if (arguments && !arguments->children.empty()) if (arguments && !arguments->children.empty())
{ {
if (arguments->children.size() != 1) if (arguments->children.size() != 1)
throw Exception( throw Exception(ErrorCodes::ILLEGAL_SYNTAX_FOR_CODEC_TYPE,
"Density codec must have only one parameter, given " + std::to_string(arguments->children.size()), "Density codec must have only one parameter, given {}", arguments->children.size());
ErrorCodes::ILLEGAL_SYNTAX_FOR_CODEC_TYPE);
const auto children = arguments->children; const auto children = arguments->children;