From 4be7e68943e8387055f211e035dbcdc67ae21620 Mon Sep 17 00:00:00 2001 From: Simon Roberts Date: Mon, 22 Nov 2021 09:57:02 +1100 Subject: [PATCH] Remove unused check --- cointop/coin.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/cointop/coin.go b/cointop/coin.go index b44287e..4676101 100644 --- a/cointop/coin.go +++ b/cointop/coin.go @@ -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,