Commit 8df34dc
committed
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".1 parent 2dca95c commit 8df34dc
1 file changed
Lines changed: 5 additions & 4 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 | | |
114 | 119 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
0 commit comments