adapted coding style

This commit is contained in:
praktikant 2012-01-24 14:46:57 +01:00
parent 12f18f34b8
commit 154a4e65bf

View file

@ -71,7 +71,7 @@ namespace SparkleLib {
public override double Size {
get {
string file_path = new string [] {LocalPath, ".git", "repo_size"}.Combine();
string file_path = new string [] {LocalPath, ".git", "repo_size"}.Combine ();
try {
return double.Parse (File.ReadAllText (file_path));
@ -85,7 +85,7 @@ namespace SparkleLib {
public override double HistorySize {
get {
string file_path = new string [] {LocalPath, ".git", "repo_history_size"}.Combine();
string file_path = new string [] {LocalPath, ".git", "repo_history_size"}.Combine ();
try {
return double.Parse (File.ReadAllText (file_path));
@ -103,10 +103,10 @@ namespace SparkleLib {
new DirectoryInfo (LocalPath));
double history_size = CalculateSize (
new DirectoryInfo (new string [] {LocalPath, ".git"}.Combine() ));
new DirectoryInfo (Path.Combine (LocalPath, ".git")));
string size_file_path = new string [] {LocalPath, ".git", "repo_size"}.Combine();
string history_size_file_path = new string [] {LocalPath, ".git", "repo_history_size"}.Combine();
string size_file_path = new string [] {LocalPath, ".git", "repo_size"}.Combine ();
string history_size_file_path = new string [] {LocalPath, ".git", "repo_history_size"}.Combine ();
File.WriteAllText (size_file_path, size.ToString ());
File.WriteAllText (history_size_file_path, history_size.ToString ());