style(Clone.xaml.cs): 使代码风格保持一致

This commit is contained in:
ZCShou 2020-07-24 21:32:11 +08:00
parent 6125c17354
commit 3128deea2c

View file

@ -23,8 +23,8 @@ namespace SourceGit.UI {
/// <summary> /// <summary>
/// Local name. /// Local name.
/// </summary> /// </summary>
public string LocalName { get; set; } public string LocalName { get; set; }
/// <summary> /// <summary>
/// Remote name. /// Remote name.
/// </summary> /// </summary>
@ -82,15 +82,12 @@ namespace SourceGit.UI {
repoName = name.Replace(".git", ""); repoName = name.Replace(".git", "");
} else { } else {
repoName = LocalName; repoName = LocalName;
} }
string rName; string rName;
if (string.IsNullOrWhiteSpace(RemoteName)) if (string.IsNullOrWhiteSpace(RemoteName)){
{
rName = null; rName = null;
} } else {
else
{
rName = RemoteName; rName = RemoteName;
} }