code cleanup

This commit is contained in:
Hylke Bons 2010-08-01 18:42:09 +01:00
parent eac51b1a12
commit 3ffe8dcd55
2 changed files with 3 additions and 0 deletions

View file

@ -114,6 +114,8 @@ namespace SparkleShare {
string repo_info = reader.ReadToEnd ();
reader.Close ();
File.Delete (repo_config_file_path);
string new_repo_info = repo_info + "\n" + user_info;
TextWriter writer = new StreamWriter (repo_config_file_path);

View file

@ -168,6 +168,7 @@ namespace SparkleShare {
if (!File.Exists (desktopfile_path)) {
if (!Directory.Exists (apps_path))
Directory.CreateDirectory (apps_path);
TextWriter writer = new StreamWriter (desktopfile_path);