mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-11-01 13:58:18 +00:00
style(settings): remove unnecessary type assertions
This commit is contained in:
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. */
|
/** `getConfig` with the LiveSync catalogue applied by default. */
|
||||||
export function getConfig(key: AllSettingItemKey, translate: MessageTranslator = translateLiveSyncMessage) {
|
export function getConfig(key: AllSettingItemKey, translate: MessageTranslator = translateLiveSyncMessage) {
|
||||||
if (isSyncGuardSettingKey(key)) return syncGuardSettingInformation[key];
|
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`. */
|
/** `getConfName` with the LiveSync catalogue applied by default. See `getConfig`. */
|
||||||
export function getConfName(key: AllSettingItemKey, translate: MessageTranslator = translateLiveSyncMessage) {
|
export function getConfName(key: AllSettingItemKey, translate: MessageTranslator = translateLiveSyncMessage) {
|
||||||
if (isSyncGuardSettingKey(key)) return syncGuardSettingInformation[key].name;
|
if (isSyncGuardSettingKey(key)) return syncGuardSettingInformation[key].name;
|
||||||
return getCommonlibConfName(key as CommonlibAllSettingItemKey, translate);
|
return getCommonlibConfName(key, translate);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user