forked from cerc-io/laconicd-deprecated
fix lint
This commit is contained in:
1 parent
5b25f5df99
commit
3ffff8d992
2 files changed
+5
-2
No files matched your search
@@ -19,6 +19,9 @@ test/
|
||||
tests/
|
||||
*_test.go
|
||||
|
||||
# false positive
|
||||
testutil/network/network.go
|
||||
|
||||
# Semgrep rules folder
|
||||
.semgrep
|
||||
|
||||
|
||||
+2
-2
@@ -170,8 +170,8 @@ func getReferences(ctx context.Context, resolver QueryResolver, r *registrytypes
|
||||
|
||||
func getIds(obj map[string]interface{}) []string {
|
||||
var ids []string
|
||||
for _, val := range obj {
|
||||
if innerObj, ok := val.(map[string]interface{}); ok {
|
||||
for key := range obj {
|
||||
if innerObj, ok := obj[key].(map[string]interface{}); ok {
|
||||
if _, ok := innerObj["/"]; ok && len(innerObj) == 1 {
|
||||
if _, ok := innerObj["/"].(string); ok {
|
||||
ids = append(ids, innerObj["/"].(string))
|
||||
|
||||
Reference in new issue
Block a user