mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-10-31 05:18: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. */
|
||||
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);
|
||||
}
|
||||
Reference in new issue
Block a user