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

Commit 35c13a7

Browse files
Repository should never be null
1 parent d181016 commit 35c13a7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,8 @@ public override void OnEnable()
3636
base.OnEnable();
3737
UpdateTreeIcons();
3838
AttachHandlers(Repository);
39-
40-
if (Repository != null)
41-
{
42-
Repository.CheckCurrentBranchChangedEvent(lastCurrentBranchChangedEvent);
43-
Repository.CheckStatusChangedEvent(lastStatusChangedEvent);
44-
}
39+
Repository.CheckCurrentBranchChangedEvent(lastCurrentBranchChangedEvent);
40+
Repository.CheckStatusChangedEvent(lastStatusChangedEvent);
4541
}
4642

4743
public override void OnDisable()

0 commit comments

Comments
 (0)