style(settings): remove unnecessary type assertions

This commit is contained in:
Artem Ovchinnikov committed 2026-10-29 13:12:03 +03:00
1 parent ed6408cc5a
commit 03a1523a58
1 file changed
+2 -2
@@ -54,11 +54,11 @@ export const SettingInformation: Partial<Record<AllSettingItemKey, Configuration
/** `getConfig` with the LiveSync catalogue applied by default. */
export function getConfig(key: AllSettingItemKey, translate: MessageTranslator = translateLiveSyncMessage) {
if (isSyncGuardSettingKey(key)) return syncGuardSettingInformation[key];
return getCommonlibConfig(key as CommonlibAllSettingItemKey, translate);
return getCommonlibConfig(key, translate);
}
/** `getConfName` with the LiveSync catalogue applied by default. See `getConfig`. */
export function getConfName(key: AllSettingItemKey, translate: MessageTranslator = translateLiveSyncMessage) {
if (isSyncGuardSettingKey(key)) return syncGuardSettingInformation[key].name;
return getCommonlibConfName(key as CommonlibAllSettingItemKey, translate);
return getCommonlibConfName(key, translate);
}