Permalink
Browse files

Minor

  • Loading branch information...
1 parent 7208127 commit 804eec37defd41e941b2a570bbdc66dc248df8de @Strilanc committed Jun 5, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 Components/ComponentSet.vb
@@ -36,16 +36,18 @@ Namespace Components
''' Throws an InvalidOperationException if the component is already included.
''' Throws an InvalidOperationException if a component with the same name and type identifiers is already included.
''' </summary>
- Private Async Sub AddComponent(component As IBotComponent)
+ Private Sub AddComponent(component As IBotComponent)
Contract.Assume(component IsNot Nothing)
If _components.Contains(component) Then
Throw New InvalidOperationException("Component already added.")
ElseIf TryFindComponent(component.Type, component.Name) IsNot Nothing Then
Throw New InvalidOperationException("There is already a {0} named {1}.".Frmt(component.Type, component.Name))
End If
_components.Add(component)
- Await component.DisposalTask
- _components.Remove(component)
+ Call Async Sub()
+ Await component.DisposalTask
+ _components.Remove(component)
+ End Sub()
End Sub
''' <summary>
''' Asynchronously adds a component to the set.

0 comments on commit 804eec3

Please sign in to comment.