Extracted dict to Fetcher
This commit is contained in:
parent
1f69282c73
commit
4da8e94bcc
7 changed files with 22 additions and 19 deletions
|
|
@ -3,7 +3,6 @@ package vk
|
|||
import (
|
||||
"errors"
|
||||
"gitlab.com/flygrounder/go-mtg-vk/internal/cardsinfo"
|
||||
"io"
|
||||
)
|
||||
|
||||
type testInfoFetcher struct{}
|
||||
|
|
@ -23,7 +22,7 @@ func (t *testInfoFetcher) GetNameByCardId(_ string, _ string) string {
|
|||
return "good"
|
||||
}
|
||||
|
||||
func (t *testInfoFetcher) GetOriginalName(name string, _ io.Reader) string {
|
||||
func (t *testInfoFetcher) GetOriginalName(name string) string {
|
||||
if name == "good" || name == "bad" || name == "uncached" {
|
||||
return name
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue