mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Lint
This commit is contained in:
parent
b07001e7d7
commit
bb03efac38
@ -218,13 +218,11 @@ SettingsConstraints SettingsProfileElements::toSettingsConstraints(const AccessC
|
|||||||
SettingsConstraints res{access_control};
|
SettingsConstraints res{access_control};
|
||||||
for (const auto & elem : *this)
|
for (const auto & elem : *this)
|
||||||
if (!elem.setting_name.empty() && elem.isConstraint() && elem.setting_name != ALLOW_BACKUP_SETTING_NAME)
|
if (!elem.setting_name.empty() && elem.isConstraint() && elem.setting_name != ALLOW_BACKUP_SETTING_NAME)
|
||||||
{
|
|
||||||
res.set(
|
res.set(
|
||||||
elem.setting_name,
|
elem.setting_name,
|
||||||
elem.min_value,
|
elem.min_value,
|
||||||
elem.max_value,
|
elem.max_value,
|
||||||
elem.writability ? *elem.writability : SettingConstraintWritability::WRITABLE);
|
elem.writability ? *elem.writability : SettingConstraintWritability::WRITABLE);
|
||||||
}
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user