1 parent 76df16c commit 2dca95cCopy full SHA for 2dca95c
1 file changed
config/cache.go
@@ -112,6 +112,10 @@ func (c *Config) UpdateCache(response map[string]interface{}) interface{} {
112
apiVerbMap = nil
113
114
count := response["count"]
115
+ if response["api"] == nil {
116
+ fmt.Println("Error: empty API list received, sync failed")
117
+ return nil
118
+ }
119
apiList := response["api"].([]interface{})
120
121
for _, node := range apiList {
0 commit comments