Skip to content

Commit

Permalink
Merge branch 'main' into feature/windowshell
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund authored Nov 13, 2023
2 parents 32f3602 + 9a423a9 commit 58e5751
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/MZikmund/Services/Preferences/PreferencesService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ public void SetSetting<T>(string key, T value, bool roamed = false)
#if DEBUG
throw new InvalidOperationException("Value stored in the setting does not match expected type.");
#else
//invalid value, remove
container.Values.Remove(key);
//invalid value, remove
container.Values.Remove(key);
#endif
}
}
Expand Down Expand Up @@ -110,8 +110,8 @@ private T RetrieveSetting<T>(string key, Func<T>? defaultValueBuilder = null, bo
#if DEBUG
throw new InvalidOperationException("Value stored in the setting does not match expected type.");
#else
//invalid value, remove
container.Values.Remove(key);
//invalid value, remove
container.Values.Remove(key);
#endif
}
}
Expand Down

0 comments on commit 58e5751

Please sign in to comment.