mirror of
https://github.com/Pungyeon/clean-go-article.git
synced 2024-11-23 14:14:05 +00:00
update readme, modify the return statment for getReference
This commit is contained in:
parent
5a062ef696
commit
1278f83e1d
|
@ -311,7 +311,7 @@ func getReference(extension string) (string, bool) {
|
||||||
if !ok {
|
if !ok {
|
||||||
return EmptyItem, false
|
return EmptyItem, false
|
||||||
}
|
}
|
||||||
return refIface.(string)
|
return refIface.(string), true
|
||||||
}
|
}
|
||||||
|
|
||||||
func getItemByReference(reference string) (Item, error) {
|
func getItemByReference(reference string) (Item, error) {
|
||||||
|
|
Loading…
Reference in a new issue