mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07:00
code_style: remove debug code
This commit is contained in:
parent
69117e8ee9
commit
853d5ce20e
1 changed files with 0 additions and 3 deletions
|
@ -431,9 +431,6 @@ namespace SourceGit.ViewModels
|
||||||
|
|
||||||
public void Save()
|
public void Save()
|
||||||
{
|
{
|
||||||
if (!Native.OS.DataDir.Contains("AppData"))
|
|
||||||
throw new Exception("xxx");
|
|
||||||
|
|
||||||
var file = Path.Combine(Native.OS.DataDir, "preference.json");
|
var file = Path.Combine(Native.OS.DataDir, "preference.json");
|
||||||
var data = JsonSerializer.Serialize(this, JsonCodeGen.Default.Preference);
|
var data = JsonSerializer.Serialize(this, JsonCodeGen.Default.Preference);
|
||||||
File.WriteAllText(file, data);
|
File.WriteAllText(file, data);
|
||||||
|
|
Loading…
Reference in a new issue