Fix-style

This commit is contained in:
philip.han 2020-07-09 22:09:52 +09:00
parent 6c814c9f9f
commit bc85df64cb

View File

@ -206,8 +206,7 @@ public:
xs = getDoubleValues(getNestedConstColumn(block, arguments, 3)); xs = getDoubleValues(getNestedConstColumn(block, arguments, 3));
ys = getDoubleValues(getNestedConstColumn(block, arguments, 4)); ys = getDoubleValues(getNestedConstColumn(block, arguments, 4));
if (variant_names.size() != xs.size() || xs.size() != ys.size()) if (variant_names.size() != xs.size() || xs.size() != ys.size())
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Sizes of arguments doen't match: variant_names: {}, xs: {}, ys: {}", throw Exception(ErrorCodes::BAD_ARGUMENTS, "Sizes of arguments doen't match: variant_names: {}, xs: {}, ys: {}", variant_names.size(), xs.size(), ys.size());
variant_names.size(), xs.size(), ys.size());
if (std::count_if(xs.begin(), xs.end(), [](double v) { return v < 0; }) > 0 || if (std::count_if(xs.begin(), xs.end(), [](double v) { return v < 0; }) > 0 ||
std::count_if(ys.begin(), ys.end(), [](double v) { return v < 0; }) > 0) std::count_if(ys.begin(), ys.end(), [](double v) { return v < 0; }) > 0)