Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit c3d5335

Browse files
committed
Make PullRequestDetailViewModel sealed
Keep CA happy by making AutoDispose static.
1 parent 6c4ff1b commit c3d5335

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GitHub.App/ViewModels/PullRequestDetailViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace GitHub.ViewModels
2626
/// </summary>
2727
[ExportViewModel(ViewType = UIViewType.PRDetail)]
2828
[PartCreationPolicy(CreationPolicy.NonShared)]
29-
public class PullRequestDetailViewModel : PanePageViewModelBase, IPullRequestDetailViewModel, IDisposable
29+
public sealed class PullRequestDetailViewModel : PanePageViewModelBase, IPullRequestDetailViewModel, IDisposable
3030
{
3131
static readonly ILogger log = LogManager.ForContext<PullRequestDetailViewModel>();
3232

@@ -86,7 +86,7 @@ public void Dispose()
8686
}
8787

8888
// HACK: This is a workaround for models not being automatically disposed.
89-
class AutoDispose
89+
static class AutoDispose
9090
{
9191
static IDisposable previous;
9292

0 commit comments

Comments
 (0)