mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
style(Clone.xaml.cs): 使代码风格保持一致
This commit is contained in:
parent
6125c17354
commit
3128deea2c
1 changed files with 6 additions and 9 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue