mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 21:30:37 +08:00
code_style: run dotnet format to follow rules defined in .editorconfig
This commit is contained in:
@@ -6,4 +6,4 @@ namespace SourceGit
|
||||
[JsonSerializable(typeof(Models.Version))]
|
||||
[JsonSerializable(typeof(ViewModels.Preference))]
|
||||
internal partial class JsonCodeGen : JsonSerializerContext { }
|
||||
}
|
||||
}
|
||||
@@ -253,7 +253,7 @@ namespace SourceGit
|
||||
};
|
||||
|
||||
dialog.Show(desktop.MainWindow);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -37,4 +37,4 @@ namespace SourceGit.Commands
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,4 +10,4 @@ namespace SourceGit.Converters
|
||||
public static FuncValueConverter<double, double> Decrease =
|
||||
new FuncValueConverter<double, double>(v => v - 1.0);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -34,4 +34,4 @@ namespace SourceGit.Models
|
||||
}
|
||||
|
||||
public class AlreadyUpToDate { }
|
||||
}
|
||||
}
|
||||
@@ -35,7 +35,7 @@ namespace SourceGit.Native
|
||||
if (File.Exists(toolPath)) return toolPath;
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
|
||||
public string FindFleet()
|
||||
{
|
||||
var toolPath = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/.local/share/JetBrains/Toolbox/apps/fleet/bin/Fleet";
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace SourceGit.Native
|
||||
return toolPath;
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
|
||||
public string FindFleet()
|
||||
{
|
||||
var toolPath = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/Applications/Fleet.app/Contents/MacOS/Fleet";
|
||||
|
||||
@@ -449,7 +449,7 @@ namespace SourceGit.ViewModels
|
||||
ViewRevisionFileContent = new Models.RevisionBinaryFile() { Size = size };
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -127,8 +127,8 @@ namespace SourceGit.ViewModels
|
||||
binaryDiff.NewSize = File.Exists(fullPath) ? new FileInfo(fullPath).Length : 0;
|
||||
}
|
||||
rs = binaryDiff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (latest.IsLFS)
|
||||
{
|
||||
rs = latest.LFSDiff;
|
||||
|
||||
@@ -12,4 +12,4 @@ namespace SourceGit.ViewModels
|
||||
|
||||
private object _data = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -102,7 +102,7 @@ namespace SourceGit.Views
|
||||
if (left != null)
|
||||
{
|
||||
return GetDesiredSize(left.Size, availableSize);
|
||||
}
|
||||
}
|
||||
else if (right != null)
|
||||
{
|
||||
return GetDesiredSize(right.Size, availableSize);
|
||||
|
||||
@@ -36,4 +36,4 @@ namespace SourceGit.Views
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user