Commit 2218325
* Fix nil panic in UpdateCache when listapisresponse is empty (#211)
* Keep existing API cache when listApis returns an empty response
Move the nil guard above the cache reset so a failed sync no longer
clears the in-memory API cache, and return 0 so 'cmk sync' prints
"Discovered 0 APIs" instead of "Discovered <nil> APIs".
---------
Co-authored-by: Boris Stoyanov <bss.stoyanov@gmail.com>
1 parent c3c3377 commit 2218325
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
111 | 116 | | |
112 | 117 | | |
113 | 118 | | |
| |||
0 commit comments