Remove unused check

pull/282/head
Simon Roberts 3 years ago committed by GitHub
parent 9a4722366f
commit 4be7e68943
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,8 +1,6 @@
package cointop
import (
"fmt"
log "github.com/sirupsen/logrus"
)
@ -106,13 +104,6 @@ func (ct *Cointop) UpdateCoin(coin *Coin) error {
return err
}
k, found := ct.State.allCoinsSlugMap.Load(coin.Name)
if !found {
err := fmt.Errorf("UpdateCoin() could not find coin %s in the slug map", coin.Name)
log.Debug(err.Error())
return err
}
coin = &Coin{
ID: v.ID,
Name: v.Name,

Loading…
Cancel
Save