adapted coding style
This commit is contained in:
parent
12f18f34b8
commit
154a4e65bf
|
@ -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 ());
|
||||
|
|
Loading…
Reference in a new issue