Improve: delete useless code and code coverage is now 100%

This commit is contained in:
Dreamacro
2018-07-12 18:03:02 +08:00
parent 283e4e1f4f
commit 39b45513af
4 changed files with 22 additions and 46 deletions

View File

@ -50,7 +50,6 @@ func (o *Observable) Subscribe() (Subscription, error) {
func (o *Observable) UnSubscribe(sub Subscription) {
elm, exist := o.listener.Load(sub)
if !exist {
println("not exist")
return
}
subscriber := elm.(*Subscriber)