Skip to content

Commit edd4417

Browse files
refactor: remove default entry addition from storage loading logic
close #72
1 parent 822383e commit edd4417

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

  • CmdPalWebSearchShortcut/WebSearchShortcut

CmdPalWebSearchShortcut/WebSearchShortcut/Storage.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,6 @@ public static Storage ReadFromFile(string path)
4242

4343
bool modified = EnsureIds(data.Data);
4444

45-
foreach (var defaultEntry in GetDefaultEntries())
46-
{
47-
if (!data.Data.Exists(x => x.Name == defaultEntry.Name))
48-
{
49-
data.Data.Add(defaultEntry);
50-
modified = true;
51-
}
52-
}
53-
5445
if (modified)
5546
{
5647
WriteToFile(path, data);

0 commit comments

Comments
 (0)