Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit f5b4fae

Browse files
committed
Cleanup some dead code and whitespace
1 parent e9181df commit f5b4fae

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/BranchesView.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,8 @@ public override void OnEnable()
6060
{
6161
base.OnEnable();
6262
AttachHandlers(Repository);
63-
if (Repository != null)
64-
{
65-
Repository.CheckLocalAndRemoteBranchListChangedEvent(lastLocalAndRemoteBranchListChangedEvent);
66-
Repository.UpdateConfigData();
67-
}
63+
Repository.CheckLocalAndRemoteBranchListChangedEvent(lastLocalAndRemoteBranchListChangedEvent);
64+
Repository.UpdateConfigData();
6865
}
6966

7067
public override void OnDisable()
@@ -116,7 +113,6 @@ private void AttachHandlers(IRepository repository)
116113

117114
private void DetachHandlers(IRepository repository)
118115
{
119-
120116
repository.LocalAndRemoteBranchListChanged -= RepositoryOnLocalAndRemoteBranchListChanged;
121117
}
122118

0 commit comments

Comments
 (0)