code_style: run dotnet format to follow rules defined in .editorconfig

This commit is contained in:
leo 2024-03-28 17:46:03 +08:00
parent 7866a11037
commit 61cead1867
12 changed files with 13 additions and 13 deletions

View file

@ -6,4 +6,4 @@ namespace SourceGit
[JsonSerializable(typeof(Models.Version))]
[JsonSerializable(typeof(ViewModels.Preference))]
internal partial class JsonCodeGen : JsonSerializerContext { }
}
}

View file

@ -253,7 +253,7 @@ namespace SourceGit
};
dialog.Show(desktop.MainWindow);
}
}
});
}

View file

@ -37,4 +37,4 @@ namespace SourceGit.Commands
}
}
}
}
}

View file

@ -10,4 +10,4 @@ namespace SourceGit.Converters
public static FuncValueConverter<double, double> Decrease =
new FuncValueConverter<double, double>(v => v - 1.0);
}
}
}

View file

@ -34,4 +34,4 @@ namespace SourceGit.Models
}
public class AlreadyUpToDate { }
}
}

View file

@ -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";

View file

@ -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";

View file

@ -449,7 +449,7 @@ namespace SourceGit.ViewModels
ViewRevisionFileContent = new Models.RevisionBinaryFile() { Size = size };
});
}
return;
}

View file

@ -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;

View file

@ -12,4 +12,4 @@ namespace SourceGit.ViewModels
private object _data = null;
}
}
}

View file

@ -102,7 +102,7 @@ namespace SourceGit.Views
if (left != null)
{
return GetDesiredSize(left.Size, availableSize);
}
}
else if (right != null)
{
return GetDesiredSize(right.Size, availableSize);

View file

@ -36,4 +36,4 @@ namespace SourceGit.Views
e.Handled = true;
}
}
}
}