code_style: remove debug code

This commit is contained in:
leo 2024-09-10 11:20:59 +08:00
parent 69117e8ee9
commit 853d5ce20e
No known key found for this signature in database

View file

@ -431,9 +431,6 @@ namespace SourceGit.ViewModels
public void Save()
{
if (!Native.OS.DataDir.Contains("AppData"))
throw new Exception("xxx");
var file = Path.Combine(Native.OS.DataDir, "preference.json");
var data = JsonSerializer.Serialize(this, JsonCodeGen.Default.Preference);
File.WriteAllText(file, data);