mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 19:02:39 +08:00
code_style: remove debug code
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user