Skip to content

Commit

Permalink
fix: remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
nishantwrp committed Sep 29, 2024
1 parent b63dc77 commit e45199e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/settings/templatesSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ export enum TemplatesSource {
Notebook,
}

const createValueMap = (): Record<string, TemplatesSource> => {
const valueMap: Record<string, TemplatesSource> = {};
valueMap["tag"] = TemplatesSource.Tag;
valueMap["notebook"] = TemplatesSource.Notebook;
return valueMap;
}

export const TemplatesSourceSetting = createEnumSetting<TemplatesSource>("templatesSource", {
public: true,
type: SettingItemType.String,
Expand All @@ -25,4 +18,4 @@ export const TemplatesSourceSetting = createEnumSetting<TemplatesSource>("templa
label: "Are templates set with tags or stored in a notebook?",
description: "If set to 'Tag', any note/to-do with a 'template' tag is considered a template. If set to 'Notebook', any note/todo stored in a notebook titled 'Templates' is considered a template.",
section: "templatesPlugin"
}, createValueMap(), TemplatesSource.Tag);
}, { "tag": TemplatesSource.Tag, "notebook": TemplatesSource.Notebook }, TemplatesSource.Tag);

0 comments on commit e45199e

Please sign in to comment.